メモ > 技術 > フレームワーク: Laravel6 > デバッグ
デバッグ
■デバッグモード
.env
APP_DEBUG=true
■デバッグバー
barryvdh/laravel-debugbar をインストールすると、
デバッグモードが有効のときにデバッグバーが表示される。
また、storage/debugbar/.gitignore が作成される。
$ composer require barryvdh/laravel-debugbar
Using version ^3.4 for barryvdh/laravel-debugbar
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
- Installing maximebf/debugbar (v1.16.3): Downloading (100%)
- Installing barryvdh/laravel-debugbar (v3.4.1): Downloading (100%)
maximebf/debugbar suggests installing kriswallsmith/assetic (The best way to manage assets)
maximebf/debugbar suggests installing predis/predis (Redis storage)
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package jakub-onderka/php-console-highlighter is abandoned, you should avoid using it. Use php-parallel-lint/php-console-highlighter instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: barryvdh/laravel-debugbar
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
16 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
■ログ
以下の場所にアプリケーションログが保存される。
storage/logs