Help us understand the problem. What is going on with this article?

Laravel 7.7 Laravel DebugBar 追加方法

Larabel DebugBarの追加が他の記事をみてもうまくいかない人へ

https://github.com/barryvdh/laravel-debugbar
に説明は書いてありますし、多くの記事の通りにやればうまくいくはずですが、
.envの変更を反映させられていないがためにうまくいかない人がいそうなので、そのような方のためにこの記事を書きました。

composer require barryvdh/laravel-debugbar --dev
php artisan vendor:publish --provider="Barryvdh\Debugbar\ServiceProvider"

をした後に、config/app.phpにて、

'debug' => (bool) env('APP_DEBUG', true),

とすればうまくいくはずですが、.envがのAPP_DEBUGがtrueになっているのにもかかわらずうまくいかない可能性があります。.envが反映されていないからです。

php artisan config:cache

をたたいてください。
うまくいくと思います。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした