src/TableDroppers/Pgsql.php
protected function getTableNames()
    {
        $schemas = DB::getConfig('used_schemas') ?: [DB::getConfig('schema')];

        $schemaCount = count($schemas);

        $binds = implode(',', array_fill(0, $schemaCount, '?'));

        return collect(
            DB::select("SELECT schemaname || '.' || tablename AS table FROM pg_catalog.pg_tables WHERE schemaname IN (".$binds.')', $schemas)
        )->pluck('table')->reject(function ($value, $key) {
            $tableName = explode('.', $value)[1];

            return $tableName === 'spatial_ref_sys';
        });
    }
protected function getTableNames()
    {
        $schemas = DB::getConfig('used_schemas') ?: [DB::getConfig('schema')];

        $schemaCount = count($schemas);

        $binds = implode(',', array_fill(0, $schemaCount, '?'));

        return collect(
            DB::select("SELECT schemaname || '.' || tablename AS table FROM pg_catalog.pg_tables WHERE schemaname IN (".$binds.')', $schemas)
        )->pluck('table')->reject(function ($value, $key) {
            $tableName = explode('.', $value)[1];

            return $tableName === 'spatial_ref_sys';
        });
    }
Get a list of all tables in the schema.

@return \Illuminate\Support\Collection