Questions tagged [laravel-octane]

33 questions
0
votes
0 answers

Route not found with Octane

I'm very new to this and can't understand what's happening. Tried multiple answers from other threads. Trying to build a search form using Laravel and Octane. There is a problem with the action method on the form
Jake
  • 59
  • 6
0
votes
1 answer

Newrelic - Laravel Octane

We moved Lumen to Laravel Octane and I was trying to install newrelic for php but there are no requests in our newrelic interface. Is there any way to install Laravel Octane using Roadrunner or Swoole?
0
votes
0 answers

Laravel Job (Without Queue) Not Dispatching With Laravel Octane

I have an "/x" api endpoint that dispatches a "MakeXJob" Job (without ShouldQueue). In local environment without Octane, it works just fine. But in Server with Octane (Swoole), does not dispatching the job. I am dispatching in command line with…
Alper
  • 152
  • 1
  • 7
0
votes
0 answers

Laravel Request Class prepareForValidation not reflected in $request->get

In a API endpoint taking "emails" as an array, I am validating values with a Request Class. In this Request class' prepareForValidation method: $this->merge([ 'emails' => array_unique($this->emails) ]); I have this lines. And a controller like…
Alper
  • 152
  • 1
  • 7
0
votes
1 answer

Test Laravel Octane application with PHPUnit

I want to run my automation tests over the Swoole server which is run by my Octane on the specific port using PHPUnit but how can I run the test on a particular URL? For example, my Swoole server runs on http://localhost:8080, and I want to run the…
A.Seddighi
  • 1,695
  • 1
  • 20
  • 43
0
votes
0 answers

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 this means that it is no required nginx? I mean…
DeveloperX
  • 517
  • 5
  • 23
0
votes
1 answer

Has anyone got Xdebug working with Laravel Octane?

We are using Laravel Octane (with Swoole) and are struggling to get Xdebug working consistently (PhpStorm and Docker). It seems to work (hits breakpoints) and then stops when we make code changes. Is this something to do with Swoole? Do we need to…
Mick
  • 1,401
  • 4
  • 23
  • 40
0
votes
0 answers

Laravel queue config stop working after some time

Currently I have a cron running that calls a command and adds this job to my queue. This works normally up to a point, then the job runs but doesn't add anything to the queue, so I have to log into the server and give an artisan config:clear to get…
0
votes
0 answers

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 Docker. When running a 60s test with 20 vus I can…
Luke Snowden
  • 4,056
  • 2
  • 37
  • 70
0
votes
0 answers

Issues using routes in Laravel Octane

I am trying to implement a laravel API using octane for the increased performance, and im now trying to use the Octane::route to pull back data from my database in my api.php file and i keep getting an error, i am running my tests using postman to…
Dath
  • 29
  • 3
0
votes
1 answer

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' => true, 'expires' => time() +…
Oliver Kucharzewski
  • 2,523
  • 4
  • 27
  • 51
0
votes
3 answers

Memory leak when using Http facade with Laravel Octane

Does anyone have idea why is memory going up for every request when I'm using Http facade with Laravel Octane ? Route::get('test', function () { Http::get('https://swapi.dev/api/people/1'); return memory_get_usage(); }); But when I use Guzzle…
0
votes
1 answer

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 server that points to my subdomains…
0
votes
0 answers

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 browser. This is what Firefox says: The…
thor
  • 1
-1
votes
2 answers

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 with performance wise? I found lot of content…
vishal-mote
  • 362
  • 2
  • 6
  • 22