Skip to content

Commit

Permalink
chore: Add a base tenant model for extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ollieread committed Nov 15, 2024
1 parent 080917e commit 9c48365
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Database/Eloquent/Tenant.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);

namespace Sprout\Database\Eloquent;

use Illuminate\Database\Eloquent\Model;
use Sprout\Contracts\Tenant as TenantContract;
use Sprout\Database\Eloquent\Concerns\IsTenant;

/**
* Abstract Tenant Class
*
* This class exists for simplicity’s sake, allowing users to extend
* rather than implement.
*
* @package Database\Eloquent
*/
abstract class Tenant extends Model implements TenantContract
{
use IsTenant;
}

0 comments on commit 9c48365

Please sign in to comment.