Execute guarded multiline Laravel Tinker code
laravel_tinker_executeRun PHP code through Laravel Tinker with blocked file, network, and process access; database writes need explicit approval.
Instructions
Runs reviewed PHP code through Laravel Tinker using an ephemeral script outside the repository. Process, filesystem, network, raw-SQL, and secret access are blocked; database writes require explicit approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional project-relative working directory. When omitted, the tool auto-detects the relevant app root. | |
| code | Yes | ||
| project | Yes | Project key from list_projects. | |
| outputMode | No | sanitized | |
| maxOutputChars | No | ||
| timeoutSeconds | No | ||
| transactionMode | No | none | |
| allowDatabaseWrite | No |