/** * Returns an array of all of the available Field Types. * * @return array */ public function availableTypes() { $fields = []; foreach ($this->flare->config('fields.types') as $type => $classname) { $fields = array_add($fields, $type, $classname); } return $fields; }
/** * Register the Flare Bindings. */ protected function registerBindings() { $this->app->bind(\LaravelFlare\Flare\Contracts\Permissions\Permissionable::class, \Flare::config('permissions')); }
/** * Returns URL to a path in the Admin Panel, using the * Admin URL defined in the Flare Config. * * @return string */ public function getRelativeAdminUrl() { return $this->relativeAdminUrl ? $this->relativeAdminUrl : \Flare::config('admin_url'); }