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;
        }
    }