mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 18:34:04 +00:00
WIP
This commit is contained in:
parent
add92b99cc
commit
e15eb01c7f
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ test('correct rls policies get created using the command', function() {
|
||||||
WHERE schemaname = ? AND tablename = ?
|
WHERE schemaname = ? AND tablename = ?
|
||||||
) AS table_exists;', ['pg_catalog', 'pg_policies'])->table_exists;
|
) AS table_exists;', ['pg_catalog', 'pg_policies'])->table_exists;
|
||||||
|
|
||||||
dd($tableExists);
|
dump($tableExists);
|
||||||
|
|
||||||
$getRlsPolicies = fn () => DB::select('select * from pg_policies');
|
$getRlsPolicies = fn () => DB::select('select * from pg_policies');
|
||||||
$getModelTables = fn () => collect(config('tenancy.models.rls'))->map(fn (string $model) => (new $model)->getTable());
|
$getModelTables = fn () => collect(config('tenancy.models.rls'))->map(fn (string $model) => (new $model)->getTable());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue