Пример #1
0
 public function __construct($model = null)
 {
     $this->model = $model;
     $ctrl = $this;
     $this->beforeFilter(function ($route, $request) use($ctrl) {
         return $ctrl->_authFilter($route, $request);
     });
     parent::__construct();
 }