Support the ongoing development of →
Authentication Architecture
Last updated 1 year ago.

One obvious workaround is to creates two differently named routes for the same controller/method, one with an api prefix, wrapped in a token auth group and one without for your frontend. More work to maintain and obvious duplication which is kinda sloppy but it would achieve what you're looking for.


Sign in to participate in this thread!


Your banner here too?

mzur mzur Joined 10 Feb 2015


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.

© 2024 - All rights reserved.