Пример #1
0
 /**
  * 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;
 }
Пример #2
0
 /**
  * Register the Flare Bindings.
  */
 protected function registerBindings()
 {
     $this->app->bind(\LaravelFlare\Flare\Contracts\Permissions\Permissionable::class, \Flare::config('permissions'));
 }
Пример #3
0
 /**
  * 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');
 }