When we use this resources in laravel route file that doesn’t need to write all command which needs crud application it always create routes filed by default using this resources command in route file


Route::resource(‘Alias’, ‘Controllername’);

With this code, Laravel will register eight routes.

  • GET /Alias
  • GET /Alias/:ID
  • GET /Alias/create
  • GET /Alias/:ID/edit
  • POST /Alias
  • PUT /Alias/:ID
  • PATCH /Alias/:ID
  • DELETE /Alias/:ID


To create controller

php artisan controller:make Controllername





1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)