setup_laravel_hosting
Provision a production-ready Laravel environment: set docroot to /public, create MySQL database and secure .env, apply 0775 permissions, add scheduler cron, and configure PHP 8.2+.
Instructions
Provision a complete, production-ready Laravel hosting environment: sets docroot to /public, provisions MySQL database, generates secure .env, configures 0775 permissions, adds Laravel scheduler cron, and sets PHP 8.2+
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"project_root": "<project_root>"
},
"name": "setup_laravel_hosting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain or subdomain to host Laravel on (e.g. 'laravel.example.com' or 'app.mysite.com') | |
| php_version | No | PHP runtime version (e.g. 'ea-php82', 'ea-php83') | ea-php82 |
| project_root | Yes | Directory where Laravel files reside (e.g. 'laravel/my-app' or 'apps/ecommerce') | |
| create_database | No | Whether to provision a MySQL database for this Laravel app | |
| database_suffix | No | Database suffix (defaults to domain prefix) |