lundi 15 février 2016

prefix route laravel and show in blade

I want to config prefix for url.File route.php is something like this

 Route::group(['prefix' => 'speech', 'as' => 'speech'], function()
{
    Route::resource('user', 'UserController', ['as' => 'speech.user']);
});

and in file blade, linkRoute is something like this

{{ Html::linkRoute('speech.user.index') }}

That's code will show error : Route [speech.user.index] not defined. What can I do?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire