Closed kriptogenic closed 11 months ago
Every time when laravel container initializes, it creates command objects. That's why you shouldn't use Command constructor for dependency injection
Nice. One better would be to use return app()->call($this, 'handle'); in fire() to automatically resolve the dependencies.
return app()->call($this, 'handle');
fire()
Every time when laravel container initializes, it creates command objects. That's why you shouldn't use Command constructor for dependency injection