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