Register an error handler:
App::missing(function($exception) {
$err = 'errors.missing';
if (Auth::check()) {
// The user is logged in...
$err = 'errors.admin.missing';
}
return Response::view($err, array(), 404);
});
nevatech said:
Register an error handler:
App::missing(function($exception) { $err = 'errors.missing'; if (Auth::check()) { // The user is logged in... $err = 'errors.admin.missing'; } return Response::view($err, array(), 404); });
nice solution but is there any more better way? since if i logged in into my admin site and i navigate to my public site (without logout) when i experience error in public site it still throw error page for admin site....
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community