Support the ongoing development of Laravel.io →
Authentication Session
Last updated 9 months ago.
0
Solution

You can simply apply two (auth|admin) filters to your admin routes.

And in admin filter, just check if user is a admin because log in is already checked by auth filter.

Last updated 9 months ago.
0

Thank you, I should have payed more attention to the documentation :)

Last updated 9 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

goowikns goowikns Joined 18 Jun 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.

© 2023 Laravel.io - All rights reserved.