Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static function send($message)
- {
- static::$message = $message;
- $enabled = Settings::Where('key', 'LIKE', '%notify_enabled_%')->get();
- foreach($enabled as $notifyService)
- {
- if(intval($notifyService->value) == 1)
- {
- $function = ltrim("notify_enabled_", $notifyService->key);
- $function();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement