Q:

Route::controller route names

How can I get route names for Route::controller to use with route() helper ?
For example:
Route::controller('admin', 'AdminController');

Is possible to use 'admin' as a prefix, for example route('admin.users') and so on ?
I've tried issuing artisan route:list but doesn't show anything for these routes.

A:

You can use 'as' to specify names for your routes,
Route::get('/admin/users', [
    'as' => 'admin.users', 'uses' => 'AdminController@users'
]);

Now if you see the output of artisan route:list You should see the name of the route /admin/users is set to admin.users

