Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

You can add one if you want one.

0
$router->controllers([
	'auth' => 'Auth\AuthController',
]);

so instead of using this, i'll specify them myself?

0
Route::get('auth/login', array('as' => 'auth.named_route', 'uses' => 'Auth\AuthController@getLogin'));

This will have name the route.

0

beaverusiv said:

Route::get('auth/login', array('as' => 'auth.named_route', 'uses' => 'Auth\AuthController@getLogin'));

This will have name the route.

yes, i know this one. is this really the only way?

0

I don't know of any other ways to register a named route. You could always type:

url('Auth\AuthController@getLogin')
0

Sign in to participate in this thread!

Eventy

Your banner here too?

alainbelez alainbelez Joined 11 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.