portainer_laravel_tinker
Execute PHP code via Laravel Tinker inside a stack's backend container to inspect database records, debug application issues, or run one-off fixes.
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 |