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

mecjos's avatar
Level 2

Not Responding Api on Laravel 8 + Sail and Passport

Laravel api crashes when an api request is made to passport.. According to my investigations it's about sail is running build-in php server.. I need something like octane but I can't install octane with laravel 8.12.. it needs laravel framework 8.83 or higher. How can I fix this problem without using octane?

0 likes
3 replies
MohamedTammam's avatar

Why do you need octane? What do you mean by "sail is running build-in php server"? Sail comes with it's PHP docker image that's ready to use. What are the logs?

mecjos's avatar
mecjos
OP
Best Answer
Level 2

I found a solution and want to share.. To use laravel passport login end point in healthy way, application is needed to be served on an application server like laravel ocatane's swoole.. since sail runs laravel app in laravel's built in server, any request to oauth servers seems like app requesting from itself.. I found a description on web something like that :)) so I installed laravel octane and now my app is running on swoole server.. now everything is fine.. by the way don't forget to start octane without --watch flag.. it's necessary to watch file changes on dev server..

Please or to participate in this conversation.