Support the ongoing development of Laravel.io →
Configuration Requests Views
Last updated 1 year ago.
0

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);
});
0

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....

0

Sign in to participate in this thread!

Eventy

Your banner here too?

t0n1zz t0n1zz Joined 8 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.