LoginSignup
0
0

More than 3 years have passed since last update.

Class blade.compiler does not exist

Posted at

状況

/App/Providers/AppServiceProviderのregister()メソッドにカスタムディレクディブの設定をしたら、
タイトルのエラーが発生しました。

対処方法

boot()メソッドに記述することでエラーが発生しなくなりました。
Upgrade to 5.8 :: Class blade.compiler does not exist

jcobb • 9 months ago
For me the problem was that I had a custom blade directive in the register() method of /App/Providers/AppServiceProvider and custom Blade directives need to be in the boot() method instead.

原因(推測です。要調査)

register()メソッドを通る時点では、サービスコンテナやプロバイダー、エイリアスの登録がされないため、
Bladeファサードが利用できず、エラーが発生したものと考えます。

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