{"id":9061,"date":"2021-09-18T13:39:15","date_gmt":"2021-09-18T13:39:15","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=9061"},"modified":"2021-09-18T13:39:17","modified_gmt":"2021-09-18T13:39:17","slug":"laravel-5-8-crud-operation-easy-way","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/","title":{"rendered":"Laravel 5.8 crud operation &#8220;easy way&#8221;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Laravel:-Open source web application framework, written in PHP.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 01 : Install Laravel 5.8<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project --prefer-dist laravel\/laravel 002 \"5.8.*\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;002&#8221; is a project name and 5.8 is a version of Laravel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 02 : Update database configuration<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">A : .env <\/h3>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png\" alt=\"\" class=\"wp-image-9063\" width=\"703\" height=\"242\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png 465w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env-300x103.png 300w\" sizes=\"auto, (max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">B : phymyadmin<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/phpmyadmin.png\" alt=\"\" class=\"wp-image-9064\" width=\"720\" height=\"187\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/phpmyadmin.png 817w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/phpmyadmin-300x78.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/phpmyadmin-768x199.png 768w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>NOTE:- Same name .env and database.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 03 : Make mode with -mcr<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code> php artisan make:model Today -mcr<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 04 : Inside todays table (migrations)<\/h3>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/53cf77ef79f4be171beb54b61c9b512c.js\"><\/script>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/migrationtodays.png\" alt=\"\" class=\"wp-image-9065\" width=\"690\" height=\"380\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/migrationtodays.png 787w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/migrationtodays-300x165.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/migrationtodays-768x423.png 768w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 05 : Migrate with database <\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 06 : Make blade file in resources<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/view.png\" alt=\"\" class=\"wp-image-9066\" width=\"499\" height=\"453\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/view.png 459w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/view-300x273.png 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 07 :make button in laravel dashboard  (Welcome.blade.php)<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code> &lt;a href=\"{{route('student')}}\">&lt;button type=\"button\" btn btn-primary>Student&lt;\/button>&lt;\/a><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"338\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/button.png\" alt=\"\" class=\"wp-image-9067\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/button.png 1009w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/button-300x100.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/button-768x257.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Route for button inside<\/strong> <strong>TodayController :-<\/strong> Route::get(&#8216;student&#8217;,\u00a0&#8216;TodayController@index&#8217;)->name(&#8216;student&#8217;);<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Call blade file from index function(TodayController) <\/strong>:- \u00a0return\u00a0view(&#8216;day.index&#8217;);<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexfile.png\" alt=\"\" class=\"wp-image-9068\" width=\"706\" height=\"270\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexfile.png 474w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexfile-300x115.png 300w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">resources->views->day-><strong>layout.blade.php<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/3ec9dba613735d14c8a3fe7436cf16d7.js\"><\/script>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"551\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/layout-1024x551.png\" alt=\"\" class=\"wp-image-9070\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/layout-1024x551.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/layout-300x162.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/layout-768x414.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/layout-1536x827.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/layout.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">resources->views-> day-><strong>index.blade.php<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/ed96945593ba49e94a21e2d07b0c6f5b.js\"><\/script>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"549\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexblade-1024x549.png\" alt=\"\" class=\"wp-image-9069\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexblade-1024x549.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexblade-300x161.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexblade-768x412.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexblade-1536x824.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/indexblade.png 1907w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>#Make route for show data , back and submit.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Route::post(&#8216;store&#8217;,\u00a0&#8216;TodayController@store&#8217;)->name(&#8216;store&#8217;);<\/strong> \/\/store data<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Route::get(&#8216;show&#8217;,\u00a0&#8216;TodayController@show&#8217;)->name(&#8216;show&#8217;); <\/strong>\/\/ show data<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Route::get(&#8216;home&#8217;,\u00a0&#8216;HomeController@dashboard&#8217;)->name(&#8216;dashboard&#8217;);<\/strong> \/\/ back to dashboard of Laravel<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"530\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/route-1-1024x530.png\" alt=\"\" class=\"wp-image-9072\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/route-1-1024x530.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/route-1-300x155.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/route-1-768x397.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/route-1-1536x794.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/route-1.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Store data in data base when we hit the submit button<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"559\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/storedata-1024x559.png\" alt=\"\" class=\"wp-image-9074\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/storedata-1024x559.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/storedata-300x164.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/storedata-768x419.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/storedata-1536x838.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/storedata.png 1917w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/899f6aa3e6932c96f92fac8d4c5d6be5.js\"><\/script>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"539\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/store-1024x539.png\" alt=\"\" class=\"wp-image-9073\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/store-1024x539.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/store-300x158.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/store-768x404.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/store.png 1052w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 08 : Show data (when we click on show data button)<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>&lt;a\u00a0href=&#8221;{{route(&#8216;show&#8217;)}}&#8221;>&lt;button\u00a0type=&#8221;button&#8221;\u00a0class=&#8221;btn\u00a0btn-info\u00a0float-right&#8221;>Show\u00a0Data&lt;\/button>&lt;\/a><\/strong> \/\/ route in button <\/li><li><strong>Route::get(&#8216;show&#8217;,\u00a0&#8216;TodayController@show&#8217;)->name(&#8216;show&#8217;);<\/strong> \/\/ Route (web.php)<\/li><li>Inside show function inside TodayController <\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code> <strong>public function show(Today $today)\r\n    { \r\n        $todays =Today::all();\r\n       return view('day.show',compact('todays'));\r\n    }<\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">4. Return<strong> show.blade.php <\/strong>With compact (<strong>all data<\/strong>)<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/a818007d9c14dde584c64ecc5d6333ad.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\">5. Route in <strong>edit <\/strong>and <strong>delete <\/strong>button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u00a0<strong>&lt;a\u00a0href=&#8221;{{route(&#8216;edit&#8217;,[&#8216;id&#8217;=>\u00a0$today->id])}}&#8221;>&lt;button\u00a0type=&#8221;button&#8221;\u00a0class=&#8221;btn\u00a0btn-primary&#8221;>edit&lt;\/button>&lt;\/a> <\/strong>\/\/ edit data<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&lt;a\u00a0href=&#8221;{{route(&#8216;delete&#8217;,\u00a0[&#8216;id&#8217;\u00a0=>\u00a0$today->id])}}&#8221;>&lt;button\u00a0type=&#8221;button&#8221;\u00a0class=&#8221;btn\u00a0btn-danger&#8221;>Delete&lt;\/button>&lt;\/a><\/strong> \/\/ delete data<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 09 : Edit data (edit button)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1.&lt;a\u00a0href=&#8221;{{route(&#8216;edit&#8217;,[&#8216;id&#8217;=>\u00a0$today->id])}}&#8221;>&lt;button\u00a0type=&#8221;button&#8221;\u00a0class=&#8221;btn\u00a0btn-primary&#8221;>edit&lt;\/button>&lt;\/a> <\/strong>\/\/ edit data in edit button<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Route::get(&#8216;edit\/{id<\/strong>}&#8217;,\u00a0&#8216;<strong>TodayController@edit<\/strong>&#8216;<strong>)->name(&#8216;edit&#8217;);<\/strong> \/\/ edit route <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3.TodayController->edit function<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> <strong>public function edit($id)\r\n    {\r\n        Log::info('inside edit function');\r\n        Log::info($id);\r\n        $today =Today::find($id);\r\n        return view('day.edit',compact('today'));\r\n    }<\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4<\/strong>. return to blade file <strong>edit.blade.php<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/b4918e47ae4719a7caf97a9e7a54d53a.js\"><\/script>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Submit button update function (TodayController)<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/adcd7e557515257c4247ba7318a10771.js\"><\/script>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"567\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/edit-1024x567.png\" alt=\"\" class=\"wp-image-9075\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/edit-1024x567.png 1024w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/edit-300x166.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/edit-768x426.png 768w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/edit-1536x851.png 1536w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/edit.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 10 : Delete data<\/h3>\n\n\n\n<script src=\"https:\/\/gist.github.com\/vikash-cotocus\/422153ed25db45509d3a2dff0f754a32.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>Laravel:-Open source web application framework, written in PHP. Step 01 : Install Laravel 5.8 &#8220;002&#8221; is a project name and [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5049],"tags":[6761,545,5052,6759,6760,373,593,213],"class_list":["post-9061","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-easy-way-to-crud-operation","tag-how","tag-laravel","tag-laravel-5-8","tag-laravel-crud-operation-in-5-8","tag-perforce","tag-process","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Laravel 5.8 crud operation &quot;easy way&quot; - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laravel 5.8 crud operation &quot;easy way&quot; - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Laravel:-Open source web application framework, written in PHP. Step 01 : Install Laravel 5.8 &#8220;002&#8221; is a project name and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-18T13:39:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-18T13:39:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png\" \/>\n<meta name=\"author\" content=\"vikashdev k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vikashdev k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/\"},\"author\":{\"name\":\"vikashdev k\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"headline\":\"Laravel 5.8 crud operation &#8220;easy way&#8221;\",\"datePublished\":\"2021-09-18T13:39:15+00:00\",\"dateModified\":\"2021-09-18T13:39:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/\"},\"wordCount\":326,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/env.png\",\"keywords\":[\"easy way to crud operation\",\"How\",\"laravel\",\"laravel 5.8\",\"laravel crud operation in 5.8\",\"Perforce\",\"Process\",\"Tutorial\"],\"articleSection\":[\"Laravel\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/\",\"name\":\"Laravel 5.8 crud operation \\\"easy way\\\" - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/env.png\",\"datePublished\":\"2021-09-18T13:39:15+00:00\",\"dateModified\":\"2021-09-18T13:39:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/env.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/09\\\/env.png\",\"width\":465,\"height\":160},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/laravel-5-8-crud-operation-easy-way\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laravel 5.8 crud operation &#8220;easy way&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\",\"name\":\"vikashdev k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"caption\":\"vikashdev k\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/vikashdev\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Laravel 5.8 crud operation \"easy way\" - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/","og_locale":"en_US","og_type":"article","og_title":"Laravel 5.8 crud operation \"easy way\" - scmGalaxy","og_description":"Laravel:-Open source web application framework, written in PHP. Step 01 : Install Laravel 5.8 &#8220;002&#8221; is a project name and [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/","og_site_name":"scmGalaxy","article_published_time":"2021-09-18T13:39:15+00:00","article_modified_time":"2021-09-18T13:39:17+00:00","og_image":[{"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png","type":"","width":"","height":""}],"author":"vikashdev k","twitter_card":"summary_large_image","twitter_misc":{"Written by":"vikashdev k","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/"},"author":{"name":"vikashdev k","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"headline":"Laravel 5.8 crud operation &#8220;easy way&#8221;","datePublished":"2021-09-18T13:39:15+00:00","dateModified":"2021-09-18T13:39:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/"},"wordCount":326,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png","keywords":["easy way to crud operation","How","laravel","laravel 5.8","laravel crud operation in 5.8","Perforce","Process","Tutorial"],"articleSection":["Laravel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/","name":"Laravel 5.8 crud operation \"easy way\" - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png","datePublished":"2021-09-18T13:39:15+00:00","dateModified":"2021-09-18T13:39:17+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/09\/env.png","width":465,"height":160},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/laravel-5-8-crud-operation-easy-way\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Laravel 5.8 crud operation &#8220;easy way&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515","name":"vikashdev k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","caption":"vikashdev k"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/vikashdev\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9061","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=9061"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9061\/revisions"}],"predecessor-version":[{"id":9076,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/9061\/revisions\/9076"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=9061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=9061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=9061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}