Fixed order email, added site url tests, add doctrine/dbal, add service::site()
This commit is contained in:
@@ -184,6 +184,17 @@ class Service extends Model
|
||||
return $this->belongsTo(Product::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* The site this service is configured for
|
||||
*
|
||||
* @todo It may be more appropriate to get this from the account->user attribute (ie: for mail actions)
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
public function site()
|
||||
{
|
||||
return $this->belongsTo(Site::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a child model with details of the service
|
||||
*
|
||||
|
Reference in New Issue
Block a user