how to route controller in laravel code example
Example 1: laravel route controller
use App\Http\Controllers\UserController;
Route::get('user/{id}', [UserController::class, 'show']);
Example 2: Route::resource
Route::resource('photos', PhotoController::class);
Example 3: laravel make:action
composer require lorisleiva/laravel-actions