Support the ongoing development of Laravel.io →
Middleware
Last updated 2 weeks ago.
3
moderator Solution

It did take some time to find it, but you have a ; on the end of line 21. That will end the if part.

I created a small test on 3v4l.org: https://3v4l.org/ieuIW

2

OMG ;-) i need a vacation. THX

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.