Questions tagged [laravel-octane]
33 questions
4
votes
1 answer
Why is PHP-FPM performance better than Octane?
I setup a clean Laravel 9 project.
I then setup Octane with RoadRunner.
I run it on a VirtualBox VM in a Windows 11 host.
My PC:
CPU: Ryzen 5 3600
RAM: 32GB - 2x16GB DDR4 3200Mhz CL16
Storage: Samsung 970 Evo (Not plus), 500GB
The VM:
CPU: 4…

pileup
- 1
- 2
- 18
- 45
2
votes
0 answers
Laravel Sail 10 + Xdebug + PhpStorm + Mac M1
I already have a project running on Laravel Sail 10.0 with roadrunner. I tried to configure Xdebug but I can't make it stop on my breakpoints.
Every time I run sail up it PhpStorm create a new tab on debug section called Artisan an a lot of…

damiusen
- 21
- 2
2
votes
0 answers
Laravel authentication by session, different domains, same application
In my new Project, I need to create an authentication system, the requirements are:
authentication should be done for different domains and sub-domains
for now, the only client type is front-end applications(SPA)
site A can have two domains,…

nader ghazi
- 66
- 5
2
votes
1 answer
Is the number of "workers" in Laravel Octane equal to the number of requests that can be handled simultaneously?
Do I understand correctly that the number of "workers" in Laravel Octane is equal to the number of requests that can be executed simultaneously?
For example, if there are 2 workers, and 2 of them are busy returning CSV exports - new requests will…

Ostap Brehin
- 3,240
- 3
- 25
- 28
2
votes
1 answer
Laravel Octane with Rabbitmq - broken pipe or closed connection error and CHANNEL_ERROR - expected 'channel.open'(60, 40)
Laravel version: "^8.54"
Octane version: "^1.0",
RabbitMQ version: "3.8.6"
Package (vladimir-yuldashev/laravel-queue-rabbitmq) version: "^11.3"
While pushing the event data to RabbitMQ via using vladimir-yuldashev/laravel-queue-rabbitmq package, I…

Tahsin Abrar
- 860
- 13
- 22
2
votes
0 answers
Can use `octane` (swoole) cache driver as default cache driver in laravel
Firstly, my English is bad. Sorry about that.
Why I ask this question since cache with octane (swoole) only available on runtime. Snippet on Laravel docs the cached data will be flushed when the server is restarted
=> Some parts of laravel cache…

Le Dinh
- 79
- 9
1
vote
0 answers
Using $this when not in object context error on Laravel bootstrap pagination when using Octane
I have setup Laravel Octane on my server with Roadrunner. Everything works fine, except for occasionally pages that use paginator throws
Using $this when not in object context
error. When I restart my octane server, the issue goes away for a certain…

Sambhav
- 46
- 5
1
vote
1 answer
Services Providers are being called multiple times
I'm using Laravel 10 With Octane Swoole and PHP 8.2. In any ServiceProvider I use the register() or boot() method, it's being called 24 times at system startup. Example:
public function register(): void
{
echo "service starting";
}
or:
public…

Lucas Fernandes
- 31
- 2
1
vote
1 answer
how to generate a sitemap in Laravel octane?
I am trying to generate a sitemap for my website but I can't, my website is using laravel octane. The urls that the spatie/laravel-sitemap package generates are like these:

DeveloperX
- 517
- 5
- 23
1
vote
0 answers
How to dynamic binding in Laravel Octane?
How to refresh container binding in laravel octane? i know that octane will bundle up on the first start but is there any where we can refresh application binding?
$this->app->bind(MainEntranceController::class, function ($app) {
…

ZeroOne
- 8,996
- 4
- 27
- 45
1
vote
1 answer
Laravel Octane Event Listener not firing
I'm using laravel sail to run laravel octane on swoole.
I made a change to my EventServiceProvider:

Simon Chawla
- 55
- 8
1
vote
0 answers
How to change database connection dynamically in laravel-octane?
I need to change database dynamically on the fly in laravel-octane or laravel-swoole package.
I am working on a custom multi tenant system. Application is working fine without swoole/octane.

Al Emran
- 46
- 1
- 6
0
votes
0 answers
PHP: Laravel Octane with Swoole Log Scraping
I'm currently trying to scrape the logs from my Laravel Octane application in a k8s cluster. The scraper gets the logs from the respective consoles, but due to the swoole (not openswoole) layer in front of the Laravel Octane I can't seem to get the…

Micha
- 11
- 3
0
votes
0 answers
Why the Nginx config in Laravel Octane documentation use close instead of keepalive?
I found that the Nginx config in Laravel Octane official documentation set connection close instead of keepalive when proxy passing to Octane listening port.
Could anyone tell me why?
The config is as follows:
map $http_upgrade $connection_upgrade…

Ray
- 333
- 4
- 11
0
votes
0 answers
Customize startup message Laravel Octane + Swoole
When Laravel Octane with Swoole is starting, he show the message on console:
INFO Server running…
Local: http://0.0.0.0:80
Press Ctrl+C to stop the server
I want remove this message and customize using one custom message.

Lucas Fernandes
- 31
- 2