Laravel command cannot call $this->info() in child class
问题 I'm just starting out with the basic concepts OO in PHP, Foo.php class Foo extends Command { public function __construct() { parent::__construct(); } public function fire() { $bar = new Bar(); } } Bar.php class Bar extends Foo { public function __construct() { parent::__construct(); $this->info('Bar'); } } When I run Foo::fire() it gives: Call to undefined method Foo::__construct() . But Foo clearly has a constructor, what am I doing wrong? Another thing I suspect is that it might be a