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

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

mzur mzur Joined 10 Feb 2015

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.