laravel create controlelr code example
Example 1: laravel create controller
php artisan make:controller MyController
Example 2: laravel route controller
use App\Http\Controllers\UserController;
Route::get('user/{id}', [UserController::class, 'show']);