mardi 22 décembre 2015

Middleware parameters and packages

I have a route defined as

Route::get('/test', 'Package\Namespace\Controllers\TestController@index')
    ->name('index-test')
    ->middleware(['Package\Namespace\Middleware\TestMiddleware']);

I want to call another middleware keeping the syntax (->middleware(...)). I have looked at the docs but I cannot figure out how to do this using the above syntax and namespaced middleware (I am developing a package)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire