I am working in Lumen app and i have created route group like below,
$router->group(['prefix' => 'clare'], function() use ($router) {
$router->get('routetest', ['uses' => 'ChannelController@index']);
});
I want to get the current route prefix in ChannelController index method. I don't know how to do that. I could not find this in documentation for lumen. But I've find this one for laravel but its not working in lumen.
$this->getRouter()->getCurrentRoute()->getPrefix();
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/39OdXg3
via IFTTT
Aucun commentaire:
Enregistrer un commentaire