genealabs / laravel-whoops-atom
此包已被放弃,不再维护。未建议替代包。
在 Atom 编辑器中打开 Whoops 栈跟踪。
0.2.1
2018-01-03 00:06 UTC
Requires
- php: >=7.0.0
- illuminate/support: >=5.5.25
Requires (Dev)
- laravel/laravel: >=5.5.22
- mockery/mockery: 0.9.*
- phpmd/phpmd: ^2.6
- phpunit/phpunit: 5.7.*
- satooshi/php-coveralls: *
- sebastian/phpcpd: *
This package is auto-updated.
Last update: 2019-10-20 21:34:04 UTC
README
Whoops-Atom for Laravel
目标
提供一种方法,可以从 Whoops 错误页面打开堆栈跟踪文件,就像一些其他编辑器所提供的那样。
安装
依赖
- Laravel 5.5.25 或更高版本
- PHP 7.0.0 或更高版本
- Atom Open Package
-
安装包
composer require genealabs/laravel-whoops-atom --dev
-
安装 Atom Open 包。
配置
/* |-------------------------------------------------------------------------- | Local Sites Path |-------------------------------------------------------------------------- | | Specify the local development folder that is synchronized with Homestead. | If you are not using Homestead, set this to an empty string or null. | This corresponds to the `-map:` line under `folders` in your | `Homestead.yaml` file. | | Default: ~/Code (string|null) | */ 'local-sites-path' => '~/code', /* |-------------------------------------------------------------------------- | Homestead Sites Path |-------------------------------------------------------------------------- | | Specify the base path where Homestead stores the synced folder with your | web sites. If you are not using Homestead, set this to an empty string | or null. This corresponds to the `to:` line under `folders` in | your `Homestead.yaml` file. | | Default: /home/vagrant/Code (string|null) | */ 'homestead-sites-path' => '/home/vagrant/code',
只有需要自定义配置时才发布配置文件:
php artisan whoops-atom:publish --config
使用
警告:此包会将一个闭包插入到配置设置中。因为这个包仅适用于开发环境。为了使用它,我们建议您不要在开发环境中缓存配置设置。
就是这样!它将自动应用到您的应用程序配置中。