mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 02:14:03 +00:00
Add RLSModel
This commit is contained in:
parent
b04b063fe6
commit
90dc8d50be
1 changed files with 17 additions and 0 deletions
17
src/Database/Concerns/RLSModel.php
Normal file
17
src/Database/Concerns/RLSModel.php
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Stancl\Tenancy\Database\Concerns;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interface indicating that the queries of the model it's used on
|
||||||
|
* get scoped using RLS instead of the global TenantScope.
|
||||||
|
*
|
||||||
|
* Used with Postgres RLS (single-database tenancy).
|
||||||
|
*
|
||||||
|
* @see \Stancl\Tenancy\Database\Concerns\BelongsToTenant
|
||||||
|
*/
|
||||||
|
interface RLSModel
|
||||||
|
{
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue