laravel route mehtod code example Example: laravel route Route::get('user/{id}', function ($id) { return 'User '.$id; });