Skip to content

Laravel

Laravel is a modern PHP framework with expressive routing, ORM, queues, and first-class testing utilities. Use this component when you want Diploi to run the build pipeline, publish assets, and keep your Laravel workloads updated without manually scripting servers.

Paste this entry into the components list in diploi.yaml to add Laravel to your project.

components:
- name: Laravel
identifier: laravel
package: https://github.com/diploi/component-laravel#v13-05.2026

What Laravel defines in a deployment.

Laravel sets these values in every deployment. Other components can import them with env.include as laravel.*. Defaults marked generated are unique to each deployment.

Parameters are set on the deployment’s Setup tab.

Laravel Environment Variables

Laravel application environment variables.

Variable Type Default Description
APP_NAME string Laravel
APP_KEY secret generated Laravel application encryption key
APP_URL string generated

Launch a trial, no account needed https://diploi.com

Uses the official FrankenPHP Docker image.

  1. In the Dashboard, click Create Project +

  2. Under Pick Components, choose Laravel (PHP)

    You can add other frameworks from this page if you want to create a monorepo application, eg, Laravel + (React + Vite for frontend).

  3. In Pick Add-ons, select any databases or extra tools you need.

  4. Choose Create Repository so Diploi generates a new GitHub repo for your project.

  5. Click Launch Stack

Check the guide https://diploi.com/blog/hosting_laravel_apps

Will run composer install --optimize-autoloader --no-interaction when component is first initialized, and frankenphp php-server when deployment is started.

Will build a production ready image. Image runs composer install --no-dev --optimize-autoloader --no-interaction when being created. Once the image runs, frankenphp php-server is called.