File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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
4848Hostname and Website models. Tenancy will take care of the relationships on the
4949package-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
5656namespace 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];
You can’t perform that action at this time.
0 commit comments