Support the ongoing development of Laravel.io →
Configuration Requests Blade
Last updated 2 years ago.
0

I found a workaround for this. Instead of:

@include('pages.search')

I changed the middleware to use a helper function and then called the helper function on a view:

{!! helperFunction(view('pages.search')) !!}

And everything seems to be working now, but am still curious as to why a 404 request isn't processed as an http request and subject to all the global http stack middleware.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2024 Laravel.io - All rights reserved.