function __construct($model) { $this->model = $model::select(); $this->base_url = \URL::current(); $this->form = new LaraForm('filter_' . $this->model->getModel()->getEntity(), 'get'); }