Creates all 7 routes for the resource to cover CRUD functionality
Route::resource('posts', 'PostsController');
These routes are:
GET
at
posts
to list all the posts
POST
at
posts
to store new post
GET
at
posts/create
to show form for creating new post
GET
at
posts/{post}
to show the post
PUT
at
posts/{post}
to update the post
DELETE
at
posts/{post}
to delete the post
GET
at
posts/{post}/edit
to show edit form
by Valeri Tandilashvili
4 years ago
Laravel
routes
Laravel From Scratch
1
Pro tip: use ```triple backticks around text``` to write in code fences