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