| 1 | <?php |
||
| 7 | abstract class BaseTenant extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Construct the model with the provided config settings |
||
| 11 | * or use our fallbacks if none are provided |
||
| 12 | */ |
||
| 13 | public function __construct(array $attributes = []) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Merge the fillable fields with any provided in the extending class |
||
| 25 | */ |
||
| 26 | public function setFillable() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Merge the fillable fields with any provided in the extending class |
||
| 39 | */ |
||
| 40 | public function owner() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * The features relationship |
||
| 47 | */ |
||
| 48 | public function features() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * The users relationship |
||
| 55 | */ |
||
| 56 | public function users() |
||
| 60 | |||
| 61 | |||
| 62 | /** |
||
| 63 | * The features relationship |
||
| 64 | */ |
||
| 65 | public function assignFeature(BaseFeature $feature) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * The features relationship |
||
| 72 | */ |
||
| 73 | public function hasFeature(BaseFeature $feature) |
||
| 77 | } |
||
| 78 |