1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00
This commit is contained in:
lukinovec 2023-06-15 13:28:17 +02:00
parent 7b092ec9d3
commit 9e9e81b69c

View file

@ -174,6 +174,8 @@ test('queries are correctly scoped using RLS', function() {
// Create posts and comments for both tenants
tenancy()->initialize($tenant);
dd(DB::select('select * from pg_policies'));
$post1 = RlsPost::create(['text' => 'first post']);
$post1Comment = $post1->scoped_comments()->create(['text' => 'first comment']);