This works perfect for / but if I was not able to make it work if your route is nested:
$router->group(['prefix'=>'admin'],function($router){// $router->fallback('AdminController@index'); // This does not for '/'$router->get('/{opt?}','AdminController@index')// This one does->where('opt','.*')->fallback();});
An experienced software developer with a strong background in developing award-winning web and mobile applications for diverse clients with 6+ years of industry experience.
Yeah...perfect for a case where most of your views are rendered by a Frontend library like React, Vue etc...it is only available in root route group, does not work in nested groups.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This works perfect for
/
but if I was not able to make it work if your route is nested:Yeah...perfect for a case where most of your views are rendered by a Frontend library like React, Vue etc...it is only available in root route group, does not work in nested groups.