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

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 3 months ago.
0

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

Last updated 3 months ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

goowikns goowikns goowikns Joined 18 Jun 2014

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.