Laravel is a PHP framework, so it runs on the same stack as any PHP site here. There is no one-click installer for Laravel: you set the PHP version, get your code onto the server, create a database, and configure the app's environment file. Here is the path end to end.
Set the PHP version
We support PHP 7.4 through 8.3, with 8.3 as the default. Pick the version your Laravel release targets:
- Go to Services → click hosting → the PHP tile.
- Choose the version for the domain.
- Save. The switch applies within seconds, no restart needed.
For the mechanics of switching versions and per-domain php.ini settings, see What PHP version should I use for WordPress (the version-switching steps are the same for any PHP app).
Get your code onto the server
Deploy your project from a repository or upload it with an FTP/SFTP client. Git is the natural fit for a framework project: see Deploying with Git. For manual uploads, see Uploading files to your hosting.
Create a MySQL database
Laravel needs a database. Create one and a user, then grant the user access:
- Go to Services → click your hosting → the Databases tile.
- Create a database, create a user, and add the user to the database with all privileges.
Full steps and connection details are in Creating MySQL databases. Keep the database name, username, and password handy for the next step.
Configure the environment file
Laravel reads its settings from a .env file in the project root. Set the database connection to match the database you created:
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=youraccount_dbname
DB_USERNAME=youraccount_dbuser
DB_PASSWORD=your-password-here
Use localhost as the host, because your app and the database run on the same server. Set APP_ENV=production and APP_DEBUG=false for a live site.
The public folder
Laravel expects the web server to serve its public/ subfolder, not the project root, so that files like .env stay out of the web root. The document root for your domain needs to point at public/ for the app to work correctly and safely. How to set a custom document root in the portal is flagged below for the portal team to confirm.