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