company = $company; $this->notification = $notification; } public function run($is_system = false) { $this->company->owner()->notify($this->notification); if ($is_system) { $this->notification->is_system = true; Notification::route('slack', $this->company->slack_webhook_url) ->notify($this->notification); } } /** * Hosted notifications. * @return void */ public function ninja() { Notification::route('slack', config('ninja.notification.slack')) ->notify($this->notification); } }