Laravel Whoops Editor helps to open your code editor from exception stack trace. Go to code editor in a blink of an eye!
This feature was introduced in Laravel 5.5.25, but unfortunately has issues on Linux machines. Laravel Whoops Editor fixes PHPStorm, IDEA and SublimeText Linux support.
Additionally allows you to open editor when using Homestead.
For Atom support you can use Mike Bronner's laravel-whoops-atom package or publish config and specify launch path in editors config section.
- Features
- Requirements
- Installation
- Configuration
- Usage
- Change log
- Contributing
- Testing
- Security
- Contributors
- Alternatives
- License
- About CyberCog
- PHPStorm cross-platform support.
- IDEA cross-platform support.
- Sublime cross-platform support.
- Allow opening code editor when using Homestead.
- Following PHP Standard Recommendations:
- Covered with unit tests.
- PHP >= 7.0.0
- Laravel >= 5.5.25
First, pull in the package through Composer:
$ composer require cybercog/laravel-whoops-editor --dev
Package designed to work right out of the box, but you could publish configuration file to tweak settings:
$ php artisan vendor:publish --provider="Cog\Laravel\WhoopsEditor\Providers\WhoopsEditorServiceProvider" --tag="config"
Specify your editor by adding APP_EDITOR=phpstorm
in .env
file.
Optionally you can specify editor by adding editor
key to the ./config/app.php
configuration file.
'editor' => 'phpstorm',
This package provides extended Linux support for editors: phpstorm
, idea
, sublime
.
Complete list of supported editors could be found in Whoops documentation.
If your OS trying to open file in web browser instead of code editor you should install Protocol Handler.
Editor | Protocol | Linux | MacOS | Windows |
---|---|---|---|---|
SublimeText | subl:// |
thecotne/subl-protocol | - | - |
Atom | atm:// |
eclemens/atom-url-handler | WizardOfOgz/atom-handler | - |
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Run the tests with:
$ vendor/bin/phpunit
If you discover any security related issues, please email open@cybercog.su instead of using the issue tracker.
Anton Komarev |
---|
Laravel Whoops Editor contributors list
Laravel Whoops Editor
package is open-sourced software licensed under the MIT License by Anton Komarev.Error In Document
image licensed under Creative Commons 3.0 by Kid A.
CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion.