PHPackages                             levacic/laravel-whoops-editor-link - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. levacic/laravel-whoops-editor-link

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

levacic/laravel-whoops-editor-link
==================================

Fixed the Sublime editor link path when running a project from a VM

1.0.3(11y ago)0385MITPHPPHP &gt;=5.4.0

Since Sep 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/levacic/laravel-whoops-editor-link)[ Packagist](https://packagist.org/packages/levacic/laravel-whoops-editor-link)[ RSS](/packages/levacic-laravel-whoops-editor-link/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

Laravel Whoops editor link fixer
================================

[](#laravel-whoops-editor-link-fixer)

This tiny package rewrites the file link in Whoops's Pretty Page handler, when used within a Laravel project.

When running your project within a virtual machine, the links generated by Whoops will point to the file path within the virtual machine, which are inaccessible from your host environment. In order for these links to work, they must be rewritten so they would point to the correct file on the host machine. Using this package, it's easy to fix these links.

Installation
------------

[](#installation)

In your project root, do this:

```
composer require levacic/laravel-whoops-editor-link:~1

```

Alternatively, you may specify whichever package version is currently available when you install the package, e.g. `~1.0.3`.

After that, publish the configuration file:

```
php artisan config:publish levacic/laravel-whoops-editor-link

```

This will copy the configuration file into `app/config/packages/levacic/laravel-whoops-editor-link/path.php`, and you should configure the appropriate paths for your environment.

For example, if your application on your host machine is located in `/home/username/www/application`, and within your virtual machine, the application root is in `/var/www/sites/application`, your configuration should look something like this:

```
