0
私のコントローラで私は持っています:Laravelカスタムファサードクラス 'name'は存在しません
使用App \ Facade \ Social;
$twitter_id = $entity->twitter_business;
if (!empty($twitter_id)) {
$twitter_array = Social::twitter($twitter_id, $id);
$postCount = $postCount + count($twitter_array);
Log::info('Twitter ok for', ['entity_id' => $id]);
}
ファサード自体:
protected static function getFacadeAccessor()
{
return 'social';
}
とサービスプロバイダ:私はエラーを取得するしかし
public function register()
{
$this->app->bind('social', function ($app) {
return new Social();
});
}
:
Class social does not exist
プロバイダとファサードが両方の設定に含まれています/ app.phpなぜこのエラーが発生するのですか? 発生する?