Standardize on sending anonymous notifications for asset checkouts

This commit is contained in:
Marcus Moore
2023-03-23 16:31:40 -07:00
parent 1f664709ba
commit 2dcf4e3d16
3 changed files with 15 additions and 37 deletions
-14
View File
@@ -263,20 +263,6 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
return $this->last_name.', '.$this->first_name.' ('.$this->username.')';
}
/**
* The url for slack notifications.
* Used by Notifiable trait.
* @return mixed
*/
public function routeNotificationForSlack()
{
// At this point the endpoint is the same for everything.
// In the future this may want to be adapted for individual notifications.
$this->endpoint = \App\Models\Setting::getSettings()->webhook_endpoint;
return $this->endpoint;
}
/**
* Establishes the user -> assets relationship