Skip to content

Commit 1637aeb

Browse files
committed
fixes tenancy#36
1 parent 304422f commit 1637aeb

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/hyn/5.2/models.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,21 @@ use the connection of the identified tenant per default.
4444
4545
#### System model override
4646

47-
This package allows you to specify different models to be used for the Customer,
47+
This package allows you to specify different models to be used for the
4848
Hostname and Website models. Tenancy will take care of the relationships on the
4949
package-end. You also need to implement `Hyn\Tenancy\Contracts\{Model}`
5050

51-
Take this example to add billing from `laravel/cashier` to our application:
51+
Take this example:
5252

5353
```php
5454
<?php
5555

5656
namespace App;
5757

58-
use Hyn\Tenancy\Contracts\Customer as Contract;
59-
use Laravel\Cashier\Billable;
58+
use Hyn\Tenancy\Contracts\Website as Contract;
6059

61-
class Customer extends Authenticatable implements Contract
60+
class Website implements Contract
6261
{
63-
use Billable;
6462
}
6563
```
6664

@@ -74,7 +72,7 @@ return [
7472
// Must implement \Hyn\Tenancy\Contracts\Hostname
7573
'hostname' => \Hyn\Tenancy\Models\Hostname::class,
7674
// Must implement \Hyn\Tenancy\Contracts\Website
77-
'website' => \Hyn\Tenancy\Models\Website::class
75+
'website' => \App\Website::class
7876
],
7977
// ...
8078
];

0 commit comments

Comments
 (0)