<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>operations in crud Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/operations-in-crud/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/operations-in-crud/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Tue, 09 Mar 2021 09:14:05 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>CRUD Operation Prerequisites.</title>
		<link>https://www.scmgalaxy.com/tutorials/crud-operation-prerequisites/</link>
					<comments>https://www.scmgalaxy.com/tutorials/crud-operation-prerequisites/#comments</comments>
		
		<dc:creator><![CDATA[abhishek k]]></dc:creator>
		<pubDate>Sat, 06 Mar 2021 09:29:08 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[crud]]></category>
		<category><![CDATA[crud basics]]></category>
		<category><![CDATA[crud operation prerequisite]]></category>
		<category><![CDATA[crud operations]]></category>
		<category><![CDATA[crud prerequisite]]></category>
		<category><![CDATA[how to crud]]></category>
		<category><![CDATA[operations in crud]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5433</guid>

					<description><![CDATA[<p>Before performing CRUD operations we need to do some of the basic tasks. These includes:- 1. Installing Laravel 2. Creating [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/crud-operation-prerequisites/">CRUD Operation Prerequisites.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Before performing CRUD operations we need to do some of the basic tasks.                                           These includes:-                                                                                                                                    <strong>1. Installing Laravel                                                                                                                                        2. Creating Laravel Project                                                                                                          3. Making Model                                                                                                                               4. Migrating  </strong>                                                                                                                                            After that we are good to go for performing the operation. </p>



<p class="wp-block-paragraph">Laravel the most popular PHP-based framework for creating database-driven apps is based on the MVC (Model-View-Controller) architecture and can be used for easily creating apps for making CRUD (Create, Retrieve, Update, Delete) operations in the database.</p>



<p class="wp-block-paragraph"><strong>1. Installing Laravel</strong>                                                                                                                                                                                               The first and foremost thing we need to have <em>Laravel </em>and <em>composer </em>installed in our system. the command for installation is<br><em><strong>composer global require “laravel/installer=~1.1”</strong></em><br>if this does not works then we could just write<br><em><strong>composer global require “laravel/installer”</strong></em><br>and it would install the file.<br><strong>2. Creating Laravel Project</strong>                                                                                                                                         Then we need to create a project and for this, we need to type<br><strong><em>composer create-project –prefer-dist laravel/laravel <strong><em>project_name</em></strong></em></strong> <strong><em>“5.8.*”</em></strong><br>If this does not works then we could just write<br><strong><em>composer create-project –prefer-dist laravel/laravel project_name</em></strong><br>it would create a Laravel project named blog (with the latest version).</p>



<p class="wp-block-paragraph"><strong>3. Making Model</strong>  <strong>and Migrating</strong>                                                                                                                        After the project is created we need to create the Model.                                                                     For this we use command.</p>



<p class="wp-block-paragraph"><strong><em>$ php artisan make:model Model_name -mcr</em></strong>  or                                                                                    <strong><em>$ php artisan make:model Model_name -a</em></strong></p>



<p class="wp-block-paragraph">(<strong>Note:-</strong> Model name should begin with a capital letter)                                        Here <strong><em>mcr </em></strong>is (migration controller resources)                                                         we can use m/c/r separately but for better convenience, we use <strong>&#8220;<em>a</em>&#8220;</strong> which can equivalently be used in place of  <strong>&#8220;mcr&#8221;</strong>.</p>



<p class="wp-block-paragraph">After the model is created we need to create the database and attach it. We can instruct for the database creation through codes or we can go to <em>PHPMyAdmin</em>,<em> </em>and there we can create the database and provide the name of the database in the <em>.env</em> file</p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/image-16.png" alt="" class="wp-image-5435" width="466" height="440" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/image-16.png 621w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/image-16-300x283.png 300w" sizes="(max-width: 466px) 100vw, 466px" /></figure></div>



<p class="wp-block-paragraph">After database creation, we need to migrate. Migrations allow to add or drop fields in the database without deleting the records already present.                          for this we use <strong><em>$ php artisan migrate</em></strong>                                                                                                    We could also refresh migration using                                                                                                                                                                             <strong><em>$</em></strong> <strong><em>php artisan migrate:refresh</em></strong></p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-large is-resized"><img decoding="async" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/image-17.png" alt="" class="wp-image-5438" width="426" height="269" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/image-17.png 568w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/03/image-17-300x189.png 300w" sizes="(max-width: 426px) 100vw, 426px" /></figure></div>



<p class="wp-block-paragraph">All the prerequisites to perform CRUD operations are completed and are ready to go. Now we can move to views to create the Html page and perform desired CRUD operations.  </p>



<p class="wp-block-paragraph">For CRUD Operation Detailed Explanation with Example. <a href="https://www.scmgalaxy.com/tutorials/crud-operation-detailed-explaination-with-example/" data-type="URL" data-id="https://www.scmgalaxy.com/tutorials/crud-operation-detailed-explaination-with-example/">https://www.scmgalaxy.com/tutorials/crud-operation-detailed-explaination-with-example/</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/crud-operation-prerequisites/">CRUD Operation Prerequisites.</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/crud-operation-prerequisites/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
