Exemple #1
0
        }
        $code = 500;
        $title = $message = '';
        if (strpos($class, 'Symfony\\Component\\HttpKernel') !== false) {
            $code = $exception->getStatusCode();
            $title = $message = $exception->getMessage();
        } else {
            if (Config::get('app.debug')) {
                $title = $exception->getFile() . ' LINE:' . $exception->getLine();
                $message = $exception->getMessage();
            }
        }
        if ($isAdmin) {
            return AdminController::errors($code, $title, $message);
        }
        return HomeController::errors($code, $title, $message);
    }
});
/*
|--------------------------------------------------------------------------
| Authentication Filters
|--------------------------------------------------------------------------
|
| The following filters are used to verify that the user of the current
| session is logged into this application. The "basic" filter easily
| integrates HTTP Basic authentication for quick, simple checking.
|
*/
Route::filter('auth', function () {
    if (Auth::guest()) {
        if (Request::ajax()) {