Skip to content
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src/Providers
tests
.gitattributes
.gitignore
.php_cs
.styleci.yml
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

Laravel Whoops Editor

cog-laravel-whoops-editor

Build Status StyleCI Releases License

Introduction

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.

Contents

Features

Requirements

  • PHP >= 7.0.0
  • Laravel >= 5.5.25

Installation

First, pull in the package through Composer:

$ composer require cybercog/laravel-whoops-editor --dev

Configuration

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"

Usage

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.

Protocol Handlers

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 -

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Testing

Run the tests with:

$ vendor/bin/phpunit

Security

If you discover any security related issues, please email open@cybercog.su instead of using the issue tracker.

Contributors

@antonkomarev
Anton Komarev

Laravel Whoops Editor contributors list

Alternatives

License

  • 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.

About CyberCog

CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion.

CyberCog

You can’t perform that action at this time.