mathieutu/laravel-open-in-editor

Let the "Open in Editor" feature from browser devtools works with Laravel.

1.0.0 2018-02-05 09:27 UTC

This package is auto-updated.

Last update: 2024-10-29 04:59:00 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

Let the "Open in Editor" feature from devtools works with Laravel.

Open in editor screenshot

See example on youtube

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.