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