# Laravel

**URL:** https://community.fly.io/c/laravel/22.md

[Latest](https://community.fly.io/latest.md) · [Categories](https://community.fly.io/categories.md) · [Tags](https://community.fly.io/tags.md)

---

## [About the Laravel category](https://community.fly.io/t/about-the-laravel-category/7450)

<div class="topic-metadata">

**Author:** [@kurt](https://community.fly.io/u/kurt)\
**Replies:** 0

</div>

---

## [Laravel deployment fails due to wayfinder](https://community.fly.io/t/laravel-deployment-fails-due-to-wayfinder/25978)

<div class="topic-metadata">

**Author:** [@olevsz](https://community.fly.io/u/olevsz)\
**Replies:** 7\
**Last updated:** [January 13, 2026, 2:50am UTC](https://community.fly.io/t/laravel-deployment-fails-due-to-wayfinder/25978 "2026-01-13T02:50:51Z")

</div>

Hey there, I just tried to deploy the laravel + vue starter-kit and wasn’t successful with that. ... FROM node:${NODE\_VERSION} as node\_modules\_go\_brrr RUN mkdir /app RUN mkdir -p /app WORKDIR /app COPY . . COPY --f…

---

## [Couldn't find any package by glob 'php8.2'](https://community.fly.io/t/couldnt-find-any-package-by-glob-php8-2/26003)

<div class="topic-metadata">

**Author:** [@Chinyoka](https://community.fly.io/u/Chinyoka)\
**Replies:** 6\
**Last updated:** [September 21, 2025, 5:24pm UTC](https://community.fly.io/t/couldnt-find-any-package-by-glob-php8-2/26003 "2025-09-21T17:24:55Z")

</div>

Hey there, I’m new to Fly.io. I’m trying to deploy my Laravel app for the first time, and it failed with these errors: Reading package lists... Building dependency tree... Reading state information... E: Unable to lo…

---

## [This article is obsolete in Livewire 3](https://community.fly.io/t/this-article-is-obsolete-in-livewire-3/24772)

<div class="topic-metadata">

**Author:** [@ymihn-nhi](https://community.fly.io/u/ymihn-nhi)\
**Replies:** 4\
**Last updated:** [July 8, 2025, 4:25pm UTC](https://community.fly.io/t/this-article-is-obsolete-in-livewire-3/24772 "2025-07-08T16:25:33Z")

</div>

---

## [📣 \[Laravel\] Fix for error "Failed due to unhealthy allocations"](https://community.fly.io/t/laravel-fix-for-error-failed-due-to-unhealthy-allocations/8148)

<div class="topic-metadata">

**Author:** [@fideloper-fly](https://community.fly.io/u/fideloper-fly)\
**Replies:** 9\
**Last updated:** [May 11, 2025, 9:01pm UTC](https://community.fly.io/t/laravel-fix-for-error-failed-due-to-unhealthy-allocations/8148 "2025-05-11T21:01:55Z")

</div>

Due to an update in the base image used for Laravel when running fly launch you may need to update your Dockerfile. Symptoms that this issue affects you include: Failed deployment with a "Failed due to unhealthy alloc…

---

## [Laravel Reverb websocket messages getting dropped](https://community.fly.io/t/laravel-reverb-websocket-messages-getting-dropped/24576)

<div class="topic-metadata">

**Author:** [@shahzeb1](https://community.fly.io/u/shahzeb1)\
**Replies:** 5\
**Last updated:** [April 14, 2025, 9:43pm UTC](https://community.fly.io/t/laravel-reverb-websocket-messages-getting-dropped/24576 "2025-04-14T21:43:02Z")

</div>

This is quite strange. I have an Event that ShouldBroadcastNow: \<?php namespace App\\Events; use App\\Models\\Run; use App\\Models\\Input; use Illuminate\\Broadcasting\\InteractsWithSockets; use Illuminate\\Broadcasting\\Priva…

---

## [Getting errors during machine startup](https://community.fly.io/t/getting-errors-during-machine-startup/24428)

<div class="topic-metadata">

**Author:** [@Jazzops](https://community.fly.io/u/Jazzops)\
**Replies:** 3\
**Last updated:** [April 3, 2025, 8:55pm UTC](https://community.fly.io/t/getting-errors-during-machine-startup/24428 "2025-04-03T20:55:22Z")

</div>

Started getting the following errors over the past week, not sure whats changed on a standard laravel deploy: \[error\]\[PC01\] instance refused connection. is your app listening on 0.0.0.0:8080? make sure it is not only li…

---

## [Laravel app: Cron just stopped working](https://community.fly.io/t/laravel-app-cron-just-stopped-working/24274)

<div class="topic-metadata">

**Author:** [@CaReS0107](https://community.fly.io/u/CaReS0107)\
**Replies:** 1\
**Last updated:** [March 17, 2025, 9:31am UTC](https://community.fly.io/t/laravel-app-cron-just-stopped-working/24274 "2025-03-17T09:31:55Z")

</div>

fly status: Machines PROCESS ID VERSION REGION STATE ROLE CHECKS LAST UPDATED app 287424\* 53 otp started 2025-03-17T07:37:12Z app 7811e16\* 53 otp stoppe…

---

## [Can I set processor/memory for Laravel cron and worker machines in fly.yaml?](https://community.fly.io/t/can-i-set-processor-memory-for-laravel-cron-and-worker-machines-in-fly-yaml/24226)

<div class="topic-metadata">

**Author:** [@RC-Ryan](https://community.fly.io/u/RC-Ryan)\
**Replies:** 3\
**Last updated:** [March 16, 2025, 3:53am UTC](https://community.fly.io/t/can-i-set-processor-memory-for-laravel-cron-and-worker-machines-in-fly-yaml/24226 "2025-03-16T03:53:44Z")

</div>

When I launch my app, Fly automatically creates machines to handle cron and workers, resulting in three servers at the same settings of my app servers, which run at shared-cpu-4x@8192MB. They could both probably run at 2…

---

## [Mysql server suspends almost immediately. How do I stop this?](https://community.fly.io/t/mysql-server-suspends-almost-immediately-how-do-i-stop-this/24032)

<div class="topic-metadata">

**Author:** [@RC-Ryan](https://community.fly.io/u/RC-Ryan)\
**Replies:** 4\
**Last updated:** [March 4, 2025, 2:22pm UTC](https://community.fly.io/t/mysql-server-suspends-almost-immediately-how-do-i-stop-this/24032 "2025-03-04T14:22:48Z")

</div>

I followed this guide: But, it suspends almost immediately and isn’t available when I try to connect to it. How do I keep this server alive? Or do I need to? I notice the guide removes anything dealing with min\_machin…

---

## [How to deploy Laravel on multiple Fly machines?](https://community.fly.io/t/how-to-deploy-laravel-on-multiple-fly-machines/23834)

<div class="topic-metadata">

**Author:** [@RC-Ryan](https://community.fly.io/u/RC-Ryan)\
**Replies:** 1\
**Last updated:** [February 10, 2025, 2:21pm UTC](https://community.fly.io/t/how-to-deploy-laravel-on-multiple-fly-machines/23834 "2025-02-10T14:21:33Z")

</div>

I followed the setup guide here but it yields a few issues: Issue 1: persisting a volume If we persist the volume, only one machine can mount it and there doesn’t seem to be a supported way for multiple machines to …

---

## [Class "Faker\\Factory" not found](https://community.fly.io/t/class-faker-factory-not-found/23508)

<div class="topic-metadata">

**Author:** [@kiki99](https://community.fly.io/u/kiki99)\
**Replies:** 1\
**Last updated:** [January 16, 2025, 3:33am UTC](https://community.fly.io/t/class-faker-factory-not-found/23508 "2025-01-16T03:33:48Z")

</div>

Hi! So I’ve been trying to deploy a Laravel app. I mounted a volume and attached it to the 1 fly machine I have for this project. I was able to successfully use the volume for my sqlite database, but the issue arises whe…

---

## [failed to fetch an image or build from source](https://community.fly.io/t/failed-to-fetch-an-image-or-build-from-source/23099)

<div class="topic-metadata">

**Author:** [@Ramzii](https://community.fly.io/u/Ramzii)\
**Replies:** 1\
**Last updated:** [December 21, 2024, 5:18am UTC](https://community.fly.io/t/failed-to-fetch-an-image-or-build-from-source/23099 "2024-12-21T05:18:32Z")

</div>

I was trying to deploy my new project like I have done once before, but it seems that this time I am unable to. When I run fly deploy, I am get this error: failed to fetch an image or build from source: error building: …

---

## [\[PC01\] instance refused connection. is your app listening on 0.0.0.0:8080? make sure it is not only listening on 127.0.0.1](https://community.fly.io/t/pc01-instance-refused-connection-is-your-app-listening-on-0-0-0-0-8080-make-sure-it-is-not-only-listening-on-127-0-0-1/23046)

<div class="topic-metadata">

**Author:** [@JorgT](https://community.fly.io/u/JorgT)\
**Replies:** 1\
**Last updated:** [December 16, 2024, 2:04pm UTC](https://community.fly.io/t/pc01-instance-refused-connection-is-your-app-listening-on-0-0-0-0-8080-make-sure-it-is-not-only-listening-on-127-0-0-1/23046 "2024-12-16T14:04:44Z")

</div>

Hello, While I develop pretty well, deploying things is not something I often do so bear with me. I’ve deployed a laravel app for staging purposes. It uses inertia with svelte. The deployment itself goes through fine a…

---

## [Scheduled command on Fly.io - SQlite db](https://community.fly.io/t/scheduled-command-on-fly-io-sqlite-db/22987)

<div class="topic-metadata">

**Author:** [@Spedix](https://community.fly.io/u/Spedix)\
**Replies:** 1\
**Last updated:** [December 10, 2024, 3:11pm UTC](https://community.fly.io/t/scheduled-command-on-fly-io-sqlite-db/22987 "2024-12-10T15:11:00Z")

</div>

Hi! So I host my Laravel app on Fly.io, and I did setup the workers/cron. It is now listening to the Queue but nothing is coming into the queue yet because the following is not ran: Schedule::command('vacancies:pipeline…

---

## [Configure Laravel WebSocket with Reverb on Fly.io](https://community.fly.io/t/configure-laravel-websocket-with-reverb-on-fly-io/22690)

<div class="topic-metadata">

**Author:** [@lordjackson](https://community.fly.io/u/lordjackson)\
**Replies:** 0\
**Last updated:** [November 15, 2024, 11:01pm UTC](https://community.fly.io/t/configure-laravel-websocket-with-reverb-on-fly-io/22690 "2024-11-15T23:01:57Z")

</div>

Hey guys, I’m trying to configure Laravel websocket Reverb on the project, but all my attempts went wrong. Could someone tell me some step by step I should do to be able to configure in fly.io? I am not able to leave p…

---

## [connection to server failed postgres](https://community.fly.io/t/connection-to-server-failed-postgres/20218)

<div class="topic-metadata">

**Author:** [@roguerecursion](https://community.fly.io/u/roguerecursion)\
**Replies:** 6\
**Last updated:** [October 10, 2024, 11:53pm UTC](https://community.fly.io/t/connection-to-server-failed-postgres/20218 "2024-10-10T23:53:29Z")

</div>

I have launched a Laravel application connected to a PostgreSQL application here. At first glance it looked like it worked however I got this warning in my terminal: “The app is not listening on the expected address and …

---

## [Laravel reverb process server running but upstream connection failing](https://community.fly.io/t/laravel-reverb-process-server-running-but-upstream-connection-failing/22061)

<div class="topic-metadata">

**Author:** [@ddddevelll](https://community.fly.io/u/ddddevelll)\
**Replies:** 1\
**Last updated:** [October 2, 2024, 3:38pm UTC](https://community.fly.io/t/laravel-reverb-process-server-running-but-upstream-connection-failing/22061 "2024-10-02T15:38:05Z")

</div>

I’m experiencing an issue with my Nginx reverse proxy setup My server log shows a successful start: CopyINFO Starting server on 0.0.0.0:6060 (ws.domain.com). Running ss -tuln confirms that it’s correctly listening on…

---

## [Laravel reverb process server running but upstream connection failing](https://community.fly.io/t/laravel-reverb-process-server-running-but-upstream-connection-failing/22060)

<div class="topic-metadata">

**Author:** [@ddddevelll](https://community.fly.io/u/ddddevelll)\
**Replies:** 0\
**Last updated:** [September 29, 2024, 10:46am UTC](https://community.fly.io/t/laravel-reverb-process-server-running-but-upstream-connection-failing/22060 "2024-09-29T10:46:13Z")

</div>

server { listen 8080; listen \[::\]:8080; server\_name ws.domain.com; location / { proxy\_http\_version 1.1; proxy\_set\_header Upgrade $http\_upgrade; proxy\_set\_header Connection "upgr…

---

## [How to Deploy laravel with Inertia SSR](https://community.fly.io/t/how-to-deploy-laravel-with-inertia-ssr/13459)

<div class="topic-metadata">

**Author:** [@bogordesain](https://community.fly.io/u/bogordesain)\
**Replies:** 11\
**Last updated:** [September 23, 2024, 12:13am UTC](https://community.fly.io/t/how-to-deploy-laravel-with-inertia-ssr/13459 "2024-09-23T00:13:34Z")

</div>

@fideloper-fly I use this Dockerfile # syntax = docker/dockerfile:experimental # Default to PHP 8.2, but we attempt to match # the PHP version from the user (wherever \`flyctl launch\` is run) # Valid version values are…

---

## [Mixed content (HTTPS / HTTP) errors with Inertia app](https://community.fly.io/t/mixed-content-https-http-errors-with-inertia-app/7888)

<div class="topic-metadata">

**Author:** [@rico](https://community.fly.io/u/rico)\
**Replies:** 11\
**Last updated:** [August 19, 2024, 4:56pm UTC](https://community.fly.io/t/mixed-content-https-http-errors-with-inertia-app/7888 "2024-08-19T16:56:42Z")

</div>

I deployed an Inertia.js & Laravel app but get a lot of Mixed content: load all resources via HTTPS to improve the security of your site errors: Mixed Content: The page at 'https://\[site\].fly.dev/client/2/core-data' was…

---

## [Problems with laravel-medialibrary](https://community.fly.io/t/problems-with-laravel-medialibrary/20295)

<div class="topic-metadata">

**Author:** [@HenestrosaDev](https://community.fly.io/u/HenestrosaDev)\
**Replies:** 1\
**Last updated:** [June 10, 2024, 10:27pm UTC](https://community.fly.io/t/problems-with-laravel-medialibrary/20295 "2024-06-10T22:27:50Z")

</div>

Hello. I use the spatie/media-library package to handle media in my Laravel project. The uploaded media gets stored in the storage/app/public directory. I have already followed the fly.io documentation to persist the st…

---

## [Laravel LiteFS example cannot acquire lease or find primary](https://community.fly.io/t/laravel-litefs-example-cannot-acquire-lease-or-find-primary/19973)

<div class="topic-metadata">

**Author:** [@discoverlance](https://community.fly.io/u/discoverlance)\
**Replies:** 3\
**Last updated:** [June 4, 2024, 4:46pm UTC](https://community.fly.io/t/laravel-litefs-example-cannot-acquire-lease-or-find-primary/19973 "2024-06-04T16:46:51Z")

</div>

I followed the setup in the example https://github.com/fly-apps/fly-laravel-litefs project with litefs for laravel. I had the following error: cannot acquire lease or find primary, retrying: fetch primary url: Get “ht…

---

## [Fly not connecting to supabase database](https://community.fly.io/t/fly-not-connecting-to-supabase-database/20161)

<div class="topic-metadata">

**Author:** [@virtualdev](https://community.fly.io/u/virtualdev)\
**Replies:** 0\
**Last updated:** [June 1, 2024, 5:13pm UTC](https://community.fly.io/t/fly-not-connecting-to-supabase-database/20161 "2024-06-01T17:13:30Z")

</div>

I created a Fly.io app that connects to a Supabase database. Last Saturday, it suddenly stopped connecting to the database, but on Sunday, it started working again. It had been working properly until today, another Satur…

---

## [Deploy error Laravel 11](https://community.fly.io/t/deploy-error-laravel-11/18928)

<div class="topic-metadata">

**Author:** [@mjhcremer](https://community.fly.io/u/mjhcremer)\
**Replies:** 2\
**Last updated:** [May 28, 2024, 2:16pm UTC](https://community.fly.io/t/deploy-error-laravel-11/18928 "2024-05-28T14:16:44Z")

</div>

When I want to deploy my Laravel 11 project I get an error “can’t read app/Http/Middleware/TrustProxies.php: No such file or directory”. I use fly.io for the first time. Is this aan Laravel 11 issue or is this an existi…

---

## [Laravel Octane 502 Bad Gateway When Machine Starts](https://community.fly.io/t/laravel-octane-502-bad-gateway-when-machine-starts/18274)

<div class="topic-metadata">

**Author:** [@mmccall10](https://community.fly.io/u/mmccall10)\
**Replies:** 8\
**Last updated:** [May 23, 2024, 2:34am UTC](https://community.fly.io/t/laravel-octane-502-bad-gateway-when-machine-starts/18274 "2024-05-23T02:34:13Z")

</div>

I am trying to run a Laravel app with octane (roadrunner in this case). I am using the default config and docker setup from fly launch. It all seems to work pretty well however the request that causes a machine to start …

---

## [Laravel 11](https://community.fly.io/t/laravel-11/19950)

<div class="topic-metadata">

**Author:** [@together](https://community.fly.io/u/together)\
**Replies:** 1\
**Last updated:** [May 20, 2024, 4:03pm UTC](https://community.fly.io/t/laravel-11/19950 "2024-05-20T16:03:00Z")

</div>

Hey, We’ve deployed a new laravel project with laravel 11 on fly.io. The cron server is down all the time and doesn’t log anything special. Do you have this issue or any idea on it?

---

## [How to run multiple cron jobs?](https://community.fly.io/t/how-to-run-multiple-cron-jobs/19528)

<div class="topic-metadata">

**Author:** [@awnigh](https://community.fly.io/u/awnigh)\
**Replies:** 3\
**Last updated:** [April 29, 2024, 12:26pm UTC](https://community.fly.io/t/how-to-run-multiple-cron-jobs/19528 "2024-04-29T12:26:09Z")

</div>

I have a laravel project I need to run multiple cron jobs every minute? I have something like this: \[processes\] app = "" cron = "cron -f" worker = "php artisan lesson:publish sqs --sleep=3 --tries=3 --max-time=36…

---

## [Laravel 10 App Strange Performance Drops - From 158ms to 10s](https://community.fly.io/t/laravel-10-app-strange-performance-drops-from-158ms-to-10s/18344)

<div class="topic-metadata">

**Author:** [@DropShift](https://community.fly.io/u/DropShift)\
**Replies:** 12\
**Last updated:** [February 26, 2024, 9:52pm UTC](https://community.fly.io/t/laravel-10-app-strange-performance-drops-from-158ms-to-10s/18344 "2024-02-26T21:52:59Z")

</div>

Hi All, I’m looking at moving my Laravel 10 stack from a Hetzner virtual machine to Fly. I’ve deployed my app successfully, but I’m seeing strange performance issues at intervals when accessing my main page. The page us…

---

## [Laravel APIREST doesn't work](https://community.fly.io/t/laravel-apirest-doesnt-work/17809)

<div class="topic-metadata">

**Author:** [@nico11garcia](https://community.fly.io/u/nico11garcia)\
**Replies:** 3\
**Last updated:** [January 24, 2024, 2:29pm UTC](https://community.fly.io/t/laravel-apirest-doesnt-work/17809 "2024-01-24T14:29:09Z")

</div>

Hello, I uploaded my Laravel app to fly.io and the index works correctly, I only use Laravel as an apirest, I have the database hosted in another service and locally the apis work correctly, but when I upload my project …

[Next page](https://community.fly.io/c/laravel/22.md?page=1)
