Recently I switched to Laravel 5.3.
I have the following route
Route::get('/activate/token', 'AccountActivationController@activate')->name('auth.activate');
But, when I use
dd(route('auth.activate));
I get the following error:
InvalidArgumentException in UrlGenerator.php line 314: Route [auth.activate] not defined.
It works perfectly fine with
Route::get('/activate/token', [
'as' => 'auth.activate',
'uses' => 'AccountActivationController@activate',
]);
Is this new in Laravel 5.3?? I am fairly new to Laravel itself.
Thank You.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nsitbS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire