I want to run a filter that check if application is installed or not, before running any route except installation related routes, cause it would cause an infinite redirect loop.
here is what I was supposed to do:
Route::filter('before', function()
{
if (!User::isInstalled()) {
return Redirect::to_route('install'); // infinite redirect loop
}
});
Is there any way to add exception to this filter? or any way to check that currently witch route is running?
any idea?
thanks
I found this method from laravel api, Laravel\Routing\Route that could be a solution
but I think they should be better way to force some routes to not use before filter.
thanks to bstrahija