Resource controllers:
Create Controller
php artisan make:controller PostController --resourceRegister Routes
Route::resource('posts', PostController::class);Available Methods
index() - GET /posts
create() - GET /posts/create
store() - POST /posts
show() - GET /posts/{post}
edit() - GET /posts/{post}/edit
update() - PUT /posts/{post}
destroy() - DELETE /posts/{post}Partial Resource
Route::resource('posts', PostController::class)
->only(['index', 'show']);
Route::resource('posts', PostController::class)
->except(['destroy']);