Fixed order email, added site url tests, add doctrine/dbal, add service::site()

This commit is contained in:
Deon George
2020-02-09 23:12:34 +11:00
parent a92e94398c
commit cd18b98859
10 changed files with 316 additions and 28 deletions

View File

@@ -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
*