/**
  * @param $id
  *
  * @return mixed
  */
 public function getEdit($id)
 {
     return user_view('fan_group.edit')->with(['name' => Input::route('name'), 'id' => $id]);
 }
 protected function registerBindings()
 {
     // Config
     $this->app->singleton(Contracts\ConfigInterface::class, function () {
         return new Support\Config(config('elegant.config_dir') . '/' . config('elegant.config_filename'));
     });
     // Navigation
     $this->app->singleton(Contracts\NavigationInterface::class, function () {
         return new Support\Navigation(config('elegant.navigation_dir') . '/' . config('elegant.navigation_filename'));
     });
     // EloquentFinder
     $this->app->bind(Contracts\EloquentFinderInterface::class, function () {
         return new Support\EloquentFinder(config('elegant.eloquent_find_dir'));
     });
     // Eloquent Repository
     $this->app->bind(Contracts\EloquentModelsRepositoryInterface::class, function (Application $app, array $arguments) {
         if (!$app['router']->current() instanceof Route) {
             return null;
         }
         $modelName = head($arguments) ?: Input::route('elegant_model');
         $repository = new EloquentModelsRepository($modelName);
         if (!$this->cacheIsTaggable()) {
             return $repository;
         }
         return new CacheEloquentDecorator($repository);
     });
     // Model Analyzer
     $this->app->bind(Contracts\ModelAnalyzerInterface::class, Support\Analysis\ModelAnalyzer::class);
 }