Skip to content
zefıly

Apps

Laravel

One-click Laravel with a production .env, database, scheduler and queue worker, and how to deploy your own Laravel app.

One-click Laravel

Choose Laravel under One-click apps to get a fresh Laravel application in production mode:

  • a PHP site on the newest PHP version installed on the server, served from public/,
  • the official Laravel skeleton (laravel/laravel, current major version) deployed as a Git release: composer install, php artisan migrate --force, storage:link, optimize,
  • a production .env with a fresh APP_KEY, APP_ENV=production, APP_DEBUG=false, daily logs, and database-backed sessions, cache and queue,
  • a database: MariaDB or PostgreSQL when the server has one, otherwise SQLite in the shared directory,
  • the scheduler (every minute) and one queue worker.

It is a starting point: point the site's Git deploy to your own repository when your app is ready.

Deploy your own Laravel app

  1. Add site with Runs on: PHP and the PHP version your app needs.
  2. On Deploy, choose the Laravel preset and your repository. The preset sets the public directory (public), build commands and shared paths (.env, storage).
  3. Write the .env (Edit .env, Add APP_KEY) and connect a database to fill in DB_*.
  4. Deploy now.

Scheduler and queue workers

The Deploy pane of a Laravel site has Scheduler (every minute) — php artisan schedule:run as a cron entry — and Queue workers: the number of php artisan queue:work processes, run as daemons that restart after every deploy. Click Apply after changing them.

Laravel Octane (FrankenPHP)

Octane keeps your application booted in FrankenPHP workers, so requests skip the framework's boot on every hit. On a Laravel site, the Deploy pane has an Octane (FrankenPHP) card:

  1. Add the package to your repository: composer require laravel/octane, commit, and deploy. Zefily refuses to enable Octane until the app has it.
  2. Set Workers (1 to 32; the default is the server's CPUs, up to 8) and Requests per worker (the default is 500; a worker is recycled after that many requests, which keeps memory in check).
  3. Click Enable Octane.

Zefily installs the pinned FrankenPHP binary (checked against its SHA-256), starts php artisan octane:start as your site user on a loopback port, and points the web server at it. The web server still serves the files in public/; everything else goes to the workers. If the app does not answer after the switch, Zefily restores PHP-FPM and the previous setup on its own.

The workers run the PHP built into FrankenPHP, which is PHP 8.6 (FrankenPHP 1.14.1), whatever PHP version the site is set to. The site's own PHP version still runs Composer, Artisan commands, cron jobs and queue workers, so keep your code working on both versions (Laravel 13 supports both). When Zefily moves Octane to a new FrankenPHP release, it restarts the workers on it and checks that the app answers; if it does not, the site stays on the previous release.

Every deploy and rollback restarts the workers on the new release, so they run the code you just deployed. Keep in mind that a worker keeps the application in memory: code that caches state in static variables can leak it between requests, so test your app under Octane before you enable it for real traffic. Disable Octane puts PHP-FPM back in front of the site at once.

Artisan, logs and caching

  • Run Artisan commands from the site's Deploy pane (Run), for example cache:clear or migrate:status.
  • The Logs pane has a Laravel source for storage/logs.
  • Turn on the Object cache to use Valkey for cache and sessions (CACHE_STORE=redis).
  • Need WebSockets for Laravel Reverb? On an nginx server, add a location for it on the Custom nginx pane and run Reverb as a daemon. OpenLiteSpeed servers cannot proxy WebSockets through a custom rule.

Updated December 3, 2026 View as Markdown llms.txt

Still stuck?

Open a ticket from your panel or write to us; we answer within a day.

Contact →

Runs the stacks you already use

Black Friday & Cyber Monday

Before you go: lifetime plans are on sale

Pay once for a lifetime plan, or get 30% off the first year of any yearly plan.

Only 100 lifetime plans per plan. When they are gone, they are gone.

See the campaign

Amazing November

See the campaign →