Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Hitostacha's avatar

Web guards for views, using API authentication coming another Laravel App

So basically I'm trying to use a Laravel app (as front) to connect to another Laravel app (it's something centralized providing RESTful API), I already set up passport and I'm returning a token which is hashed and stored in cookies, only usable by the website. What I'm wondering is, how do I use said token to check as if it were a guard? I can't use either auth guards because they're checking locally (the database assigned to the application and user models), what I need is something that checks in an outside URI?

0 likes
0 replies

Please or to participate in this conversation.