/* |-------------------------------------------------------------------------- | Installation filters |-------------------------------------------------------------------------- | | We need to check a few installation statuses. So we can do that by adding | a filter beforehand rather than cluttering up the controllers. | */ Route::filter('installed', function () { if (!Metadata::installed()) { return Redirect::to('install'); } }); Route::filter('installing', function () { if (Metadata::installed()) { return Redirect::to('/'); } }); Route::filter('hasDB', function () { if (Metadata::hasDB()) { return Redirect::to('install/meta'); } }); /* |-------------------------------------------------------------------------- | CSRF Protection Filter |-------------------------------------------------------------------------- | | The CSRF filter is responsible for protecting your application against | cross-site request forgery attacks. If this special token in a user