The Largest Free Web Script Directory Sites • FreeWebScript.com

How to Resolve Error Laravel NotFoundHttpException in RouteCollection.php

  • 927

How to resolve Error in laravel when visiting 404 page error page NotFoundHttpException in RouteCollection.php

This case solved with Redirect all errors to the homepage.

How to? : app/Exceptions/Handler.php add this code dipped down or if there are similarities but different commands, then delete that and then replace with this code.

public function render($request, Exception $e)
    {
        if($this->isHttpException($e))
        {
            switch ($e->getStatusCode())
                {
                // not found
                case 404:
                return redirect()->guest('home');
                break;

                // internal error
                case '500':
                return redirect()->guest('home');
                break;

                default:
                    return $this->renderHttpException($e);
                break;
            }
        }
        else
        {
                return parent::render($request, $e);
        }
    }

Or you can replace your Handler.php with this sample file solved code: Direct Link https://www.6webhost.com

Free Download How to Resolve Error Laravel NotFoundHttpException in RouteCollection.php

Important! We update new contents like PHP Scripts, WordPress Themes, Plugins, Mobile App Templates Source Code or Article like How to Resolve Error Laravel NotFoundHttpException in RouteCollection.php for Web Development Business and Online Marketers everyday. But remember, if you getting some resource file from here that you should never use this items in a commercial website. All the file/contents posted here for development & testing purpose only. if this post contains shared file, I Recommended you buy source code for supporting the Developer. we do not store all the files on this website/host, Hence We Are Not Violating Any Terms.

Related Source How to Resolve Error Laravel NotFoundHttpException in RouteCollection.php

It Looks Like You Have AdBlocker Enabled

Please know that FreeWebScript.com relies solely on ads to keep producing and offering free content to you. We appreciate your disabling of Adblock to help support our site. If you have disabled ADBlock in your browser please Reload this Page.