50 questions
0
votes
1
answer
102
views
Laravel Observer With Octane: slug is generated in creating event, but not saved in DB
I'm using a creating Eloquent model observer to automatically generate a slug before inserting a new product into the database.
Here’s the code from my ProductObserver:
public function creating(...
0
votes
0
answers
117
views
Running Laravel Octane for a Specific Location in Nginx Configuration
Here is my current configuration.
server {
include snippets/security.conf;
include snippets/gzip.conf;
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 200M;
root /var/...
0
votes
0
answers
310
views
How to access Laravel Octane on default ports with Frankenphp and Docker
I'm struggling with how to set up docker-compose (or dockerfile) to work with Laravel Octane by default.
I'm using basic things from https://frankenphp.dev/docs/docker/.
I also changed Caddyfile to ...
0
votes
1
answer
168
views
traefik + HTTPS + Caddy > Internal Server Error
I'm looking to upgrade our current laravel app, by using FrankenPHP to give it a performance boost. But I'm having issues when I try to deploy to our staging environment, so I'm trying to clone that ...
0
votes
0
answers
170
views
Running Laravel Octane/Swoole with IP host
I am currently running Laravel project with Octane and Swoole. It works well on localhost, but whenever I try to run Laravel Octane with host I always got an error like that:
Running Laravel Octane on ...
1
vote
0
answers
578
views
How to install octane in Laravel 10/filament app on home server?
I try to install octane in my Laravel 10/filament app and I run it with command :
$ php artisan octane:start --server=swoole --host=local-quizzes.com --port=8002 --watch
INFO Server running….
...
0
votes
1
answer
830
views
Laravel Octane with nginx not loading webpages
i am on laravel 8, php 8.1.29 and i am trying to move my current progject from php-fpm to laravel octane, follwoing the instructions from laravel documentations i am able to install and enable octane ...
0
votes
1
answer
598
views
Timeout Issues using Laravel Sanctum & Octane together
I'm trying to migrate to Laravel Octane.
I use the cookie-based session authentication from Sanctum (React SPA) and use Laravel as an API.
I tried setting up Octane with Swoole, which caused lots of ...
0
votes
1
answer
1k
views
Class "Laravel\Octane\Octane" not found
I'm trying to run Laravel Octane in Docker. I'm using FrankenPHP. When it starts, in log I'm getting lots of:
ERROR PHP Fatal error: Uncaught Error: Class "Laravel\Octane\Octane" not found ...
0
votes
1
answer
877
views
When deploying a Laravel Octane app with Swoole on Kubernetes (or AWS ECS), is a separate Nginx container required alongside the Octane app?
In the context of Kubernetes (or AWS ECS), when deploying a Laravel Octane application using Swoole (or RoadRunner), is it essential to include a separate Nginx container (or any other web server) ...
0
votes
1
answer
1k
views
Laravel Octane + nginx subdomain: How to set up nginx
I have the following route in my web.php
$parsedUrl = parse_url($appUrl);
$host = $parsedUrl['host'];
Route::domain("{slug}.$host")->group(function () {
Route::get('/', ...
0
votes
0
answers
466
views
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 ...
4
votes
2
answers
1k
views
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 ...
1
vote
2
answers
6k
views
Laravel with PHP-FPM is better or laravel octane?
Consider your application having other factors common excluding laravel + php-FPM and Laravel Octane like apache server, ram size, processors speed etc.
So can somebody tell me why and which is better ...
5
votes
1
answer
2k
views
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: ...
1
vote
1
answer
279
views
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:
<?xml version="1.0&...
-1
votes
1
answer
1k
views
fresh laravel throught docker installation failing by searching for octan
I run command to get new laravel 9 setup under docker with only mysql and redis containers by doing curl -s "https://laravel.build/example-app??with=mysql,redis" | bash, after that I run cd ...
0
votes
0
answers
1k
views
Can I use laravel octane with swoole for production?
my laravel website is already using ngnix + php-fpm, it is working fine, but I want to migrate to docker with octane, do you know a good tutorial to check it? Octane uses swoole or roadrunner, then ...
2
votes
0
answers
800
views
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 ...
-1
votes
1
answer
2k
views
Not able to generate a Let's Encrypt Certificat
I am using Laravel Forge to manage my servers and websites. So generating SSL certificates via Let's Encrypt is also done vie Forge. Somehow one of my domains throws me an error (see attached).
This ...
1
vote
0
answers
1k
views
Laravel application stuck using Octane after x amount of requests
I'm currently upgrading an application to use Octane. At a glance I thought this was working great until I used K6 to do some load testing.
It might be worth mentioning at this point that I'm using ...
0
votes
1
answer
841
views
Setting cookies in Laravel Octane / Swoole
I'm attempting to set cookies on Laravel Octane, however the cookies appear to be not defined on the given index.
setcookie(self::JWT_TOKEN_COOKIE, $token_details['access_token'], [
'httponly'...
1
vote
0
answers
397
views
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.
0
votes
1
answer
929
views
configuring swoole http-server without nginx in front
how can I configure a swoole http-server without nginx?
my problem is domain routing. where can I configure a specific domain for swoole http-server in laravel octane?
I have configured an nginx on my ...
0
votes
0
answers
1k
views
Why are the links are in Http and the domain is in Https with a nginx proxy
I have just set up Laravel octane and its working as expected but all of the links are shown in http but the site is over HTTPS.
For example when trying to login. The user will be warned by the web ...