portainer_laravel_tinker
Run PHP code inside a Laravel application's container using Artisan Tinker. Inspect database records, model state, or apply fixes without restarting services.
Instructions
Execute PHP code via Laravel Tinker inside a stack's backend container.
Finds a running backend container for the given stack and runs
php artisan tinker --execute="<code>". Useful for inspecting
database records, checking model state, running one-off fixes,
and debugging application issues.
Args: stack_name: Stack name prefix (e.g. "taylor", "blog", "somnlyx") code: PHP code to execute (will be passed to tinker --execute) endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack_name | Yes | ||
| code | Yes | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |