/** * Controller constructor. */ public function __construct() { parent::__construct(); $this->types = Enum::getTypes(); abort_unless($this->types, 500, 'Enum Resources is empty!...'); $this->switchType(); }
/** * Controller constructor. * * @param \Minhbang\Ebook\Ebook $ebook */ public function __construct(Ebook $ebook) { $this->model = $ebook; $this->categoryManager = $ebook->categoryManager(); $this->accessControl = $ebook->accessControl(); $this->datatable = $this->newClassInstance(config('ebook.datatable'), $this); parent::__construct(); $this->switchStatus(); }
public function __construct() { parent::__construct(); $this->ftp = FTP::connection('tls_server1'); }