mercredi 27 mai 2020

How laravel route:group wrapper works?

Laravel has really nice features of routing which made our life so comfortable. I am so curious about this Route::group() wrapper. How does it work and how does Roue class inside group wrapper get the information at group parameters. Is it maintain any global variable?

Route::group([
    'prefix' => 'audiobook',
    'middleware' => 'auth:api',
    'namespace' => 'Api\Audiobook'
], function () {
    Route::get('latest', 'AudioController@LatestAudioBook');
});


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3c2D9Nm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire