Laravel CRUD Operations
- Create the controller:
- Create the model
- Create the table
- Create the route
- Create the views files
- index.blade.php
- create.blade.php
- edit.blade.php
- show.blade.php
- Set the index function inside the controller
php artisan make:controller RecordsController --resource
php artisan make:model Record
php artisan make:migration create_table_records
Route::resource('records', RecordsController::class);
inside the views/dashboard create a new folder call it records and
inside it create 4 files like this :
return view('dashboard.records.index');