mathieutu / laravel-open-in-editor
Let the "Open in Editor" feature from browser devtools works with Laravel.
Requires
- php: ^7.1
- filp/whoops: ~2.0
- laravel/laravel: >= 5.5
Requires (Dev)
- orchestra/testbench: 3.5.*
- phpunit/phpunit: ^6.0
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-10-29 04:59:00 UTC
README
Let the "Open in Editor" feature from devtools works with Laravel.
Installation
You can install the package via composer:
composer require --dev mathieutu/laravel-open-in-editor
Usage
When app is in debugging mode, the package let you use the "open in editor" function of devtools.
Under the hood, it creates a __open-in-editor?file=MYFILE&line=MYLINE
route, that you can call from anywhere and that will open on the fly the given file directly in your IDE!
It uses the editor methods of Whoops handler, so you have to set your editor by adding the editor
key to the ./config/app.php
configuration file.
'editor' => 'phpstorm',
License
This package is an open-sourced software licensed under the MIT license.
Contributing
Issues and PRs are obviously welcomed and encouraged, as well for new features than documentation. Each piece of code added should be fully tested, but we can do that all together, so please don't be afraid by that.