Changeset View
Changeset View
Standalone View
Standalone View
src/app/Tenant.php
Show All 21 Lines | class Tenant extends Model | ||||
* Discounts assigned to this tenant. | * Discounts assigned to this tenant. | ||||
* | * | ||||
* @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'); | ||||
} | } | ||||
/** | |||||
* SignupInvitations assigned to this tenant. | |||||
* | |||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany | |||||
*/ | |||||
public function signupInvitations() | |||||
{ | |||||
return $this->hasMany('App\SignupInvitation'); | |||||
} | |||||
} | } |