$router->controllers([
'auth' => 'Auth\AuthController',
]);
so instead of using this, i'll specify them myself?
Route::get('auth/login', array('as' => 'auth.named_route', 'uses' => 'Auth\AuthController@getLogin'));
This will have name the route.
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?
I don't know of any other ways to register a named route. You could always type:
url('Auth\AuthController@getLogin')
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community