Deploy Laravel 13 Blade MySQL [Oct 26]
Laravel 13.37 Blade starter with MySQL. Updated Oct 26
laravel-blade-mysql
Just deployed
MySQL
Just deployed
/var/lib/mysql
Deploy and Host Laravel 13 Blade MySQL on Railway
Laravel 13.37 (16 October 2026) Blade starter with MySQL. One click provisions the database, injects DB_URL, runs migrations, and serves the app with FrankenPHP.
About Hosting Laravel 13 Blade MySQL
Railpack builds this repo on PHP 8.4 and starts FrankenPHP with the document root at public. The start script runs php artisan migrate --force before the server listens. Railway's healthcheck is GET /up. The app trusts Railway's proxy, so pages and assets stay on HTTPS.
The MySQL service is part of the template. Its connection string is wired to DB_URL. If the wizard also sets DB_CONNECTION=sqlite (the skeleton default), a present DB_URL still selects MySQL. ext-pdo_mysql is required in composer.json, so Railpack installs the driver even when DB_CONNECTION is not mysql.
Why Deploy Laravel 13 Blade MySQL on Railway?
- October 2026 framework: Laravel 13.37, PHP 8.4, Vite 8.3, Tailwind CSS 4.3.
- MySQL is provisioned with the app. No manual connection form.
- Migrations run on every deploy and are safe to repeat.
GET /upis the healthcheck. Logs from the start script go to the deploy logs.
Common Use Cases
- Start a Blade app that already talks to MySQL on Railway.
- Confirm a production deploy path before adding auth, queues, or your own routes.
- Fork the skeleton and keep the
DB_URLconnection rule.
Dependencies for Laravel 13 Blade MySQL Hosting
Deployment Dependencies
- Laravel 13.37 and PHP 8.4
- MySQL 9 (the template service).
DB_URLis${{MySQL.MYSQL_PUBLIC_URL}} - FrankenPHP, installed by Railpack
- Vite 8.3 and Tailwind CSS 4.3, built during the Railpack install
What you get
| Service | Description |
|---|---|
| Laravel 13.37 app | Blade starter served by FrankenPHP |
| MySQL 9 | Managed database, connected via DB_URL |
Local development
cp .env.example .env
composer install
npm install
npm run build
php artisan key:generate
php artisan serve
Without DB_URL, the app uses SQLite. Set DB_URL to a MySQL URL when you want the same connection the template uses.
Notes
- Database:
config/database.phpuses MySQL wheneverDB_URLis set, including whenDB_CONNECTIONissqlite. - Migrations: run on every deploy.
- Healthcheck:
/up, registered inbootstrap/app.php. - Logging: the start script prints migration output to the deploy logs (
railway logs).
Template Content
laravel-blade-mysql
marco-quintella/laravel-blade-mysqlMySQL
mysql:9MYSQLPORT
MYSQLUSER
MYSQL_URL
MYSQL_DATABASE
MYSQL_PUBLIC_URL
MYSQL_ROOT_PASSWORD
