Search code examples
laravelhandler

Laravel 5.2 - customize error "Whoops, looks like something went wrong"


How can I change the error page "Whoops, looks like something went wrong."? I want to show my page 404 inside errors folder my handler is simple:

public function render($request, Exception $e)
{
    return parent::render($request, $e);
}

Solution

  • I assume you're already inside of app/Exceptions/Handler.php

    public function render($request, Exception $e)
    {
        return response()->view('errors.custom'); 
    }