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.
Add to your project
Section titled “Add to your project”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.2026Laravel reference
Section titled “Laravel reference”What Laravel defines in a deployment.
Environment variables
Section titled “Environment variables”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 |
Readme
Section titled “Readme”Launch a trial, no account needed https://diploi.com
Uses the official FrankenPHP Docker image.
Operation
Section titled “Operation”Getting started
Section titled “Getting started”-
In the Dashboard, click Create Project +
-
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).
-
In Pick Add-ons, select any databases or extra tools you need.
-
Choose Create Repository so Diploi generates a new GitHub repo for your project.
-
Click Launch Stack
Check the guide https://diploi.com/blog/hosting_laravel_apps
Development
Section titled “Development”Will run composer install --optimize-autoloader --no-interaction when component is first initialized, and frankenphp php-server when deployment is started.
Production
Section titled “Production”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.