/** * Run a select statement against the database. * * @param string $query * @param array $bindings * @param bool $useReadPdo * @return array * @static */ public static function select($query, $bindings = array(), $useReadPdo = true) { //Method inherited from \Illuminate\Database\Connection return \Illuminate\Database\PostgresConnection::select($query, $bindings, $useReadPdo); }
/** * @param string $channel * @param string $payload */ private function publish($channel, $payload) { $this->connection->select('SELECT pg_notify(:channel,:payload)', compact('channel', 'payload')); }