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

secondman's avatar

Passport and Inertia

I've been tasked with converting our API written in Laravel 5.8 and MaterialCSS to The latest Laravel 8 and Inertia w TailwindCSS.

First step get a working Laravel 6 version -- has proven to be more difficult than I imagined.

We do have a user area for users to make clients and manage their authorized apps, so I have both a /signin route for these users, and because Passport seems to do some sort of magic to redirect to /login this route needs to be a non-inertia page as well as the /authorize route.

No matter what I do I'm unable to bypass Inertia. Passport redirects to the non-inertia page, but it throws mad Inertia related errors.

I'm aware of this issue https://github.com/inertiajs/inertia-laravel/issues/57 and I've even spoke to Jonathan on Twitter regarding the static macro issue for PHP 7.4, but I've not found a way to get this working.

Anyone that can assist I would be eternally grateful.

0 likes
4 replies
secondman's avatar

Hmmmm.

It's said that gratitude is one the most important things in life.

Certainly much more important than what the "forum police" think about the fact that saying thank you bumps an older thread.

@m074554n I'm glad you got the help you needed, that's what this website is for. And thanks to @rogervila for supplying the answer.

2 likes

Please or to participate in this conversation.