/** * Controller constructor. */ public function __construct() { parent::__construct(); $this->types = Enum::getTypes(); abort_unless($this->types, 500, 'Enum Resources is empty!...'); $this->switchType(); }
public function __construct() { parent::__construct(); $this->ftp = FTP::connection('tls_server1'); }
protected function initWeb() { parent::initWeb(); $this->html = $this->newClassInstance(config('ebook.html'), $this->model); view()->share('html', $this->html); }