mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
debug
This commit is contained in:
parent
7b092ec9d3
commit
9e9e81b69c
1 changed files with 2 additions and 0 deletions
|
|
@ -174,6 +174,8 @@ test('queries are correctly scoped using RLS', function() {
|
||||||
// Create posts and comments for both tenants
|
// Create posts and comments for both tenants
|
||||||
tenancy()->initialize($tenant);
|
tenancy()->initialize($tenant);
|
||||||
|
|
||||||
|
dd(DB::select('select * from pg_policies'));
|
||||||
|
|
||||||
$post1 = RlsPost::create(['text' => 'first post']);
|
$post1 = RlsPost::create(['text' => 'first post']);
|
||||||
$post1Comment = $post1->scoped_comments()->create(['text' => 'first comment']);
|
$post1Comment = $post1->scoped_comments()->create(['text' => 'first comment']);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue