Download the PHP package beyondcode/nova-tinker-tool without Composer
On this page you can find all versions of the php package beyondcode/nova-tinker-tool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download beyondcode/nova-tinker-tool
More information about beyondcode/nova-tinker-tool
Files in beyondcode/nova-tinker-tool
Package nova-tinker-tool
Short Description Use Laravel tinker from Nova.
License MIT
Informations about the package nova-tinker-tool
Nova Tinker Tool
Use the power of Tinker within your Nova application.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
Usage
Click on the new "Tinker" menu item in your Nova application. You can enter any PHP code and press CMD+Enter / CTRL+Enter to evaluate the expression. The return value will be displayed below.
The previous code and output will be stored in the localstorage in case you want to execute the same code snippets multiple times.
Settings
By default this Pysh will attempt to write to ~/.pysh which for most will result in an error when trying to use tinker. To avoid this issue adding an environment variable to change where Pysh will write to will resolve this:
Security: Remote Code Execution
This should only be used for development and testing. Running tinker allows arbitrary code to be executed.
Any executed php code will have the same access as the running php instance. This means that the running application may be altered, and if run with root privileges, one can get complete control of the machine.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Marcel Pociot
- All Contributors
License
The MIT License (MIT). Please see License File for more information.