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