How Laravel Handles HTTP Errors A request hits a non-existent route Router throws NotFoundHttpException Exception is caught by Handler Laravel looks for resources/views/errors/404.blade.php (example) Returns an HTTP 404 response with the rendered view Common Handling app/Exceptions/Handler.php : converts exceptions into HTTP responses. namespace App\Exceptions ; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler ; use Illuminate\Http\Exceptions\ThrottleRequestsException ; use Illum
Comment
Sign in to join the discussion.
Loading comments…