0
Как вставить Auth
в услугу? Я знаю в самом сервисе:Laravel: Inject Auth в службу
public function __construct(Illuminate\Auth\AuthManager $Auth)
{
$this->authService = $Auth;
}
Но как передать его в сервисе? То есть
$this->app->bind('SomeService', function() {
return new SomeService(??); // What goes here?
});