/** * Create a new command instance. * * @param $hostname_id */ public function __construct($hostname_id) { parent::__construct(); $this->hostname = app('Hyn\\Webserver\\Contracts\\HostnameRepositoryContract')->findById($hostname_id); }
/** * @param WebsiteRepositoryContract $website */ public function __construct(WebsiteRepositoryContract $website) { parent::__construct(); $this->website = $website; }