public function register(Application $app)
    {
        $this->eloquent = new EloquentCapsule();
        $config = Database::getDatabaseConfiguration();

        /*
         | We will loop over all connections
         | and set connection
         */
        foreach ($config as $key => $c) {
            $this->setConnection($c);
        }

        $this->eloquent->setEventDispatcher(new Dispatcher(new Container()));
        // Make this Capsule instance available globally via static methods... (optional)
        $this->eloquent->setAsGlobal();
        // Setup the Eloquent ORM... (optional; unless you've used setEventDispatcher())
        $this->eloquent->bootEloquent();
    }