public function connect(Application $app)
    {
        $this->modelProvider = function ($id) use ($app) {
            return $app['redbean']->load($this->table, $id);
        };

        return $app['controllers_factory'];
    }