Laravel Whoops Editor
, (*1)
, (*2)
Introduction
Laravel Whoops Editor helps to open your code editor from exception stack trace. Go to code editor in a blink of an eye!, (*3)
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., (*4)
Additionally allows you to open editor when using Homestead., (*5)
For Atom support you can use Mike Bronner's laravel-whoops-atom package or publish config and specify launch path in editors config section., (*6)
Contents
Features
- 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.
Requirements
- PHP >= 7.0.0
- Laravel >= 5.5.25
Installation
First, pull in the package through Composer:, (*7)
```shell script
$ composer require cybercog/laravel-whoops-editor --dev, (*8)
## Configuration
Package designed to work right out of the box, but you could publish configuration file to tweak settings:
```shell script
$ php artisan vendor:publish --provider="Cog\Laravel\WhoopsEditor\Providers\WhoopsEditorServiceProvider" --tag="config"
Usage
Specify your editor by adding APP_EDITOR=phpstorm
in .env
file., (*9)
Optionally you can specify editor by adding editor
key to the ./config/app.php
configuration file., (*10)
'editor' => 'phpstorm',
This package provides extended Linux support for editors: phpstorm
, idea
, sublime
., (*11)
Complete list of supported editors could be found in Whoops documentation., (*12)
Protocol Handlers
If your OS trying to open file in web browser instead of code editor you should install Protocol Handler., (*13)
Change log
Please see CHANGELOG for more information on what has changed recently., (*14)
Contributing
Please see CONTRIBUTING for details., (*15)
Testing
Run the tests with:, (*16)
shell script
$ vendor/bin/phpunit
, (*17)
Security
If you discover any security related issues, please email open@cybercog.su instead of using the issue tracker., (*18)
Contributors
Laravel Whoops Editor contributors list, (*19)
Alternatives
License
About CyberCog
CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion., (*20)
, (*21)