mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
parent
1b92787911
commit
4c5bb1f8bc
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ App\Providers\TenancyServiceProvider::class, // <-- here
|
||||||
|
|
||||||
## Creating a tenant model {#creating-a-tenant-model}
|
## Creating a tenant model {#creating-a-tenant-model}
|
||||||
|
|
||||||
Now you need to create a Tenant model. The package comes with a default Tenant model that has many features, but it attempts to be mostly unopinonated and as such, we need to create a custom model to use domains & databases. Create the file `app/Models/Tenant.php` like this:
|
Now you need to create a Tenant model. The package comes with a default Tenant model that has many features, but it attempts to be mostly unopinionated and as such, we need to create a custom model to use domains & databases. Create the file `app/Models/Tenant.php` like this:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue