Route::resource('/posts', [UserController::class]); code example
Example: Route::resource('/posts','PostController');
Route::resources([
'photos' => 'PhotoController',
'posts' => 'PostController',
]);
Route::resources([
'photos' => 'PhotoController',
'posts' => 'PostController',
]);