public function __construct($app) { parent::__construct($app); $this->articleModel = new Article(); $this->houseModel = new House(); $this->projectModel = new Project(); $this->designModel = new Design(); }
/** * Constructor. * * Amazingly we have to override the constructor because the parent is not type * hinted so won't dependency inject properly. * * @param \Illuminate\Contracts\Foundation\Application $app */ public function __construct(Application $app) { parent::__construct($app); $this->namespace = $app->make('config')->get('tenancy.multi_site.router.namespace', 'App\\Http\\Controllers'); }