Putback user::site(), add heading for order emails

This commit is contained in:
Deon George
2020-02-09 16:48:03 +11:00
parent eb316f65fc
commit a92e94398c
6 changed files with 48 additions and 5 deletions

View File

@@ -133,6 +133,16 @@ class User extends Authenticatable
->with(['account','product','invoices.items.tax','type']);
}
/**
* The site this user is configured to access
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function site()
{
return $this->belongsTo(Site::class);
}
/**
* This users supplier/reseller
*