Crud Operation in Laravel for beginners with scratch

In this tutorial I'm going to learn about crud operation in Laravel with step by step.

next to connect with database go to .env file and put your database name

Next to create model migration and controller file so run below command

Next go to your product migration file and these column define below

Now migrate the table

Next go to your controller and add crud function

Next go to route and add below route urls

Next go to resource/view/products create below filename

  • create.blade.php
  • edit.blade.php
  • index.blade.php

Go to create blade php and add below code in their files

index.blade.php

edit.blade.php

Now its working properly

--

--

Hi I am Amit Experienced Web Developer with a demonstrated history of working in the information technology and services industry.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Amit Kumar

Hi I am Amit Experienced Web Developer with a demonstrated history of working in the information technology and services industry.