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

zcabez's avatar

Can i make REST Api and use it on route web ?

Is it possible ? if it possible how do i store the access_token for the user, in the session ? Thanks :)

0 likes
1 reply
wilburpowery's avatar
Level 23

Are you using Laravel Passport?

If yes, there's a middleware you can include on your web group to consume your api from the frontend.

1 like

Please or to participate in this conversation.