LoginSignup
0
0

More than 3 years have passed since last update.

laravel-debugbarを使えば様々な値をブラウザ上で簡単に確認できる

Last updated at Posted at 2020-02-08

概要

laravel-debugbarを導入することで、変数内の値やリクエスト内容、レスポンス内容などその他様々な情報をブラウザ上で操作しながら確認することができるようになる便利なバーが出現する

install

$ cd [適用するプロジェクト]
$ composer require barryvdh/laravel-debugbar

サービスプロバイダーとファサードの追加

config/app.php
'providers' => [
    Barryvdh\Debugbar\ServiceProvider::class,
],

'aliases' => [
    'Debugbar' => Barryvdh\Debugbar\Facade::class,
]

envファイルの設定

.env
APP_DEBUG=true

本番環境へデプロイ

  • envファイルを変更するだけで良い
.env
APP_DEBUG=false
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0