# Fly.io for Laravel documentation needs some love

**URL:** <https://community.fly.io/t/fly-io-for-laravel-documentation-needs-some-love/22652>\
**Category:** General\
**Tags:** docs, laravel, sqlite, volumes, login-only\
**Created:** [November 12, 2024, 7:30pm UTC](https://community.fly.io/t/fly-io-for-laravel-documentation-needs-some-love/22652 "2024-11-12T19:30:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RP56](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@RP56](https://community.fly.io/u/RP56)\
**Post date:** [November 12, 2024, 7:30pm UTC](https://community.fly.io/t/fly-io-for-laravel-documentation-needs-some-love/22652/1 "2024-11-12T19:30:41Z")

</div>

If you follow the directions for persisting your /storage folder:

> **[Persisting the Storage Folder](https://fly.io/docs/laravel/the-basics/laravel-volume-storage/)**
>
> Documentation and guides from the team at Fly.io.

Then your deploy script for running `php artisan optimize` and `php artisan migrate` will no longer work because the Fly start scripts don’t have volume access. It also will no longer support running more than one machine at a time, because the volume can only be mounted by one machine. If running deploy scripts with a persisted storage folder is possible, the documentation doesn’t explain how.

The same is true for following the SQLite documentation:

> **[Laravel and SQlite](https://fly.io/docs/laravel/database-guides/laravel-sqlite/)**
>
> Documentation and guides from the team at Fly.io.

If you follow that guide, then your db will only work on the machine where the volume is mounted. Or, you can also end up with two independent databases. If running [Fly.io](http://Fly.io) with Laravel with multiple machines is possible, the documentation doesn’t explain how. Can these guides get some love?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [November 21, 2024, 5:54am UTC](https://community.fly.io/t/fly-io-for-laravel-documentation-needs-some-love/22652/3 "2024-11-21T05:54:51Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
