jeudi 10 mars 2016

Laravel 5 routing-resource issue

I am trying to use Laravel 5's resource inside group and it is not working

Route::group([
    'prefix' => 'apps',
    'namespace' => 'App',
], function () {
    Route::resource('/', 'AppController', ['only' => ['show', 'index']]);
    //but if I am adding something after / it works
    Route::resource('/asd', 'AppController', ['only' => ['show', 'index']]);
    Route::get('/{slug}/{userId}', 'AppController@shared');
});

I am doing something wrong, or it is simply not allowed? Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire