public function bootEloquent($config){
        try{
            $this->app->container->singleton('db',function(){
                return new DatabaseManager;
            });

            $this->app->db->addConnection($config['connections'][$config['default']]);
            $this->app->db->setAsGlobal();
            $this->app->db->bootEloquent();
        }catch(\Exception $e){
            throw $e;
        }
    }
public function bootEloquent($config){
        try{
            $this->app->container->singleton('db',function(){
                return new DatabaseManager;
            });

            $this->app->db->addConnection($config['connections'][$config['default']]);
            $this->app->db->setAsGlobal();
            $this->app->db->bootEloquent();
        }catch(\Exception $e){
            throw $e;
        }
    }
public function bootEloquent ( $ config ) { try { $ this -> app -> container -> singleton ( 'db' , function ( ) { return new DatabaseManager ; } ) ; $ this -> app -> db -> addConnection ( $ config [ 'connections' ] [ $ config [ 'default' ] ] ) ; $ this -> app -> db -> setAsGlobal ( ) ; $ this -> app -> db -> bootEloquent ( ) ; } catch ( \ Exception $ e ) { throw $ e ; } }
Boot up Eloquent ORM and inject to Slim container
@param  Array $config
Boot up Eloquent ORM and inject to Slim container