Exemplo n.º 1
0
 /**
  * Controller constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->types = Enum::getTypes();
     abort_unless($this->types, 500, 'Enum Resources is empty!...');
     $this->switchType();
 }
Exemplo n.º 2
0
 /**
  * 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();
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->ftp = FTP::connection('tls_server1');
 }