Support the ongoing development of Laravel.io →
Authentication Architecture
Last updated 6 months 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!

Cloudways

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.

© 2022 Laravel.io - All rights reserved.