状況
/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ファサードが利用できず、エラーが発生したものと考えます。