Changeset View
Changeset View
Standalone View
Standalone View
src/app/Tenant.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | class Tenant extends Model | ||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany | * @return \Illuminate\Database\Eloquent\Relations\HasMany | ||||
*/ | */ | ||||
public function discounts() | public function discounts() | ||||
{ | { | ||||
return $this->hasMany('App\Discount'); | return $this->hasMany('App\Discount'); | ||||
} | } | ||||
/** | /** | ||||
* Any (additional) settings of this tenant. | |||||
* | |||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany | |||||
*/ | |||||
public function settings() | |||||
{ | |||||
return $this->hasMany('App\TenantSetting'); | |||||
} | |||||
/** | |||||
* SignupInvitations assigned to this tenant. | * SignupInvitations assigned to this tenant. | ||||
* | * | ||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany | * @return \Illuminate\Database\Eloquent\Relations\HasMany | ||||
*/ | */ | ||||
public function signupInvitations() | public function signupInvitations() | ||||
{ | { | ||||
return $this->hasMany('App\SignupInvitation'); | return $this->hasMany('App\SignupInvitation'); | ||||
} | } | ||||
Show All 13 Lines |