Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Laravel Whoops Editor helps to open your code editor from exception stack trace.

License

Notifications You must be signed in to change notification settings

cybercog/laravel-whoops-editor

Repository files navigation

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

About CyberCog

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

CyberCog