Your Laravel backendReady for the next release

You are building your application with Laravel and AI. MainPath prepares project structure, tests and deployment so your PHP backend can move from local development to your server.

A prepared server environment for your Laravel project

Your code becomes an applicationWith a path to your server

Your backend as a Docker image

The pipeline builds your Laravel backend into an image. Your PHP code and its Composer dependencies remain part of your application.

An environment for Laravel

MainPath prepares connected servers with Docker, a reverse proxy and HTTPS. Your backend and its database belong to the project.

Laravel provides the toolsYou decide how to use them

Migrations, background jobs and data need rules that fit your application.

  • Plan migrations

    Test schema changes alongside your code and decide their place in a release. Check how your application works with the changed data before publishing.

  • Define jobs and schedules

    Decide which queue workers and scheduled tasks your backend needs. Their configuration and behavior are part of your Laravel application.

  • Connect data and credentials

    The prepared backend uses MySQL. Maintain your own values per environment and keep credentials in managed secrets.

  • Keep uploads persistent

    Point Laravel Storage at the intended upload location. User files then remain separate from a new application image.

From your Laravel projectto a checked release

  1. Choose your project foundation

    Create a Laravel backend. If you already have code, your AI agent first checks whether the project can be imported.

  2. Prepare the environments

    Connect the target server and configure your application values. Separate local development, Dev and production, as well as public configuration and secrets.

  3. Build with your agent

    Develop features, test data changes and run the backend locally. Changes and project rules remain traceable in the repository.

  4. Check Dev and approve the release

    The pipeline tests and builds your changes. Try the deployed Dev version, then deliberately approve the appropriate build for production.

One command to get startedYour Laravel project stays the foundation

Open the cloned backend repository and start its local development environment with the MainPath CLI. Docker and the required runtimes need to be ready on your machine.

  • Your own local values go in custom environment files
  • Leave generated environment files and .gitlab-ci.yml unchanged
mp run-local
Run from the root of the backend repository

Your next Laravel featureWith a clear path to release

Start a Laravel project or talk to us about bringing your existing application to MainPath.

Questions about Laravel on MainPath

Can I bring an existing Laravel application?

Yes, for supported projects. Your AI agent checks the code first and guides the import. Application values, data and additional services need to fit the prepared setup.

Import an existing project

Which database does the backend use?

The prepared backend uses MySQL in its own container on the project server. You can enable phpMyAdmin in the project configuration to manage the database.

Who defines migrations and queue workers?

You decide which migrations, workers and scheduled tasks your application needs. Test their configuration and release behavior for your project; the generated pipeline file is not edited by hand.

How do I manage my own environment variables?

Your own values go in the documented custom files and project environment configuration. MainPath manages sensitive passwords and API keys as secrets.

Environment variables and secrets

How do I back up the database and uploads?

For supported MySQL backends, you can enable Easy Backup in the project configuration. It backs up the database and uploads in production; choose the schedule and retention to fit your project.

Explore Easy Backup

Thank you for your request

We have received your request and will get back to you as soon as possible.

Would you like to talk to us directly?

Choose a time here for an introductory call with Robin.

Open the calendar in a new tab