Named routes, the best thing that's created by Laravel. But is it's possible in some way to add an array of named routes which can be used?
I did the follow:
Route::get('/', [
'as' => ['url', 'secondurl'],
'uses' => 'ViewController@index'
]);
but it returned an eror, Illegal offset type
.
Is this simply not possible or did I do something wrong?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire