PHP / Laravel
Learn how to deploy a Laravel application with Ink using a simple prompt.
Create an Ink account and connect Ink
Make sure you have an Ink account and have set up Ink for your agent. Use the CLI, the Ink Skill, or MCP. For MCP auth, choose:
- OAuth — authenticate through a browser flow, no keys to manage
- Token — create an API key at deployink.com/account/api-keys
See Quick Start for full setup instructions.
Verify the connection
Once Ink is connected, confirm your agent can reach it by asking it to check.
Do you have Ink connected?
Create a Laravel app
Ask your agent to scaffold a new Laravel project. If you already have a PHP app in the current directory, skip this step and go straight to deploying.
Create a Laravel API for a simple inventory system. Include models, migrations, and RESTful controllers.
Deploy with Ink
Tell your agent to deploy. The agent will create a git repository on Ink's internal git (or your connected GitHub), push the code, and call service_create to trigger a build.
Ink auto-detects PHP/Laravel and starts the app with artisan serve.
Deploy with Ink
repo_create(
"name": "inventory-api"
)service_create(
"name": "inventory-api",
"repo": "ink/inventory-api",
"build_pack": "railpack",
"ports": {
"0": "[object Object]"
}
)Visit your API
Ink returns a live URL once the build completes. Visit it to see your Laravel API running in production.
Check logs and metrics (optional)
Ask your agent to pull build logs, runtime logs, or metrics for your deployed service.
Check metrics and logs
service_get(
"name": "inventory-api",
"deploy_log_lines": "50",
"runtime_log_lines": "50"
)That's it — your Laravel app is deployed and live. From here you can add a custom domain, set up environment variables, or explore more examples.