1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 21:54:03 +00:00

JobPipeline tests

This commit is contained in:
Samuel Štancl 2020-05-08 05:12:46 +02:00
parent bd9aad229b
commit 7a2e6bb13e
4 changed files with 108 additions and 12 deletions

View file

@ -29,11 +29,6 @@ class Tenant extends Model
public $guarded = [];
public function domains() // todo not required
{
return $this->hasMany(Domain::class);
}
public static function internalPrefix(): string
{
return config('tenancy.database_prefix');
@ -71,6 +66,7 @@ class Tenant extends Model
public function run(callable $callback)
{
// todo new logic with the manager
$originalTenant = $this->manager->getTenant();
$this->manager->initializeTenancy($this);