vendredi 28 avril 2017

403 error page not rendered in my live hosting?

i am using laravel 5.3, my render function for displaying errors is:

public function render($request, Exception $e)
    {
        if($this->isHttpException($e)){
            if (view()->exists('errors.'.$e->getStatusCode()))
            {
                return response()->view('errors.'.$e->getStatusCode(), [], $e->getStatusCode());
            }

        }
        return parent::render($request, $e);
    }

and i have the 403, 404 and 503 errors page in errors folder..

the 404 page works...so if i entered a page is not in my site the 403 blade return ....but when i try to access some folders...and i got the default cpanel forbidden page.....so how can i display the error page for 403 error. thank you



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2pqimMQ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire