1 | <?php |
||
7 | abstract class BaseFeature extends Model |
||
8 | { |
||
9 | /** |
||
10 | * The attributes that are mass assignable. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $fillable = [ |
||
15 | 'name', 'model', 'label', 'description', 'auto_add' |
||
16 | ]; |
||
17 | |||
18 | /** |
||
19 | * The features relationship |
||
20 | */ |
||
21 | public function tenants() |
||
25 | |||
26 | /** |
||
27 | * The features relationship |
||
28 | */ |
||
29 | public function giveToTenant(BaseTenant $tenant) |
||
35 | |||
36 | /** |
||
37 | * The features relationship |
||
38 | */ |
||
39 | public function hasTenant(BaseTenant $tenant) |
||
43 | } |
||
44 |