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