Support the ongoing development of Laravel.io →
posted 10 years ago
Blade

Hi, I have the 404.blade.php file in the resources/views/errors and it extends master.blade.php, like this:

@extends('frontend.master')

@section('main')

    404

@stop

I'm using abort(404); to trigger the error page and it works fine. But I need to pass some variables from the controller to the 404 view. How can I do this?

Thanks

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

fana605 fana605 Joined 26 Dec 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.

© 2025 Laravel.io - All rights reserved.