/** * Get a schema builder instance for the connection. * * @return \Illuminate\Database\Schema\Builder */ public function getSchemaBuilder() { $builder = parent::getSchemaBuilder(); $builder->blueprintResolver(function ($table, $callback) { return new Blueprint($table, $callback); }); return $builder; }
/** * Get a schema builder instance for the connection. * * @return \Illuminate\Database\Schema\Builder */ public function getSchemaBuilder() { $parentBuilder = parent::getSchemaBuilder(); // add a blueprint resolver closure that returns the custom blueprint $parentBuilder->blueprintResolver(function ($table, $callback) { return new Blueprint($table, $callback); }); return $parentBuilder; }
/** * Set the table prefix and return the grammar. * * @param \Illuminate\Database\Grammar $grammar * @return \Illuminate\Database\Grammar * @static */ public static function withTablePrefix($grammar) { //Method inherited from \Illuminate\Database\Connection return \Illuminate\Database\PostgresConnection::withTablePrefix($grammar); }
/** * @param string $channel * @param string $payload */ private function publish($channel, $payload) { $this->connection->select('SELECT pg_notify(:channel,:payload)', compact('channel', 'payload')); }