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