public function __construct(LaravelApplication $app, Guard $auth) { $this->app = $app; $this->auth = $auth; $this->helper = $this->app->make('skvn.crud'); $this->cmsHelper = $this->app->make('skvn.cms'); $this->request = $this->app['request']; $this->view = $this->app['view']; $this->view->share('cmsHelper', $this->cmsHelper); $this->view->share('config', $this->app['config']->get('crud_common')); $this->view->share('avail_controls', Form::getAvailControls()); }
/** * Get an array of available filter field types. * * @return array */ public function getAvailableFilterTypes() { $types = []; foreach (Form::getAvailControls() as $control) { if ($control instanceof WizardableField) { if ($control instanceof FormControlFilterable) { $types[$control->controlType()] = $control->wizardCaption(); } } } return $types; }