Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function register()
 {
     if ($connection = $this->app['config']->get('database.deep.connection')) {
         Model::setGlobalConnection($connection);
     }
     $this->app->singleton('deep', function () {
         return new Deep();
     });
     $this->app->singleton('deep.entry', function ($app) {
         return $app->make('deep')->make('Entry');
     });
     $this->app->singleton('deep.title', function ($app) {
         return $app->make('deep')->make('Title');
     });
     $this->app->singleton('deep.category', function ($app) {
         return $app->make('deep')->make('Category');
     });
 }