| @@ 107-112 (lines=6) @@ | ||
| 104 | 'layout' => $layout, |
|
| 105 | 'text' => $text, |
|
| 106 | ]; |
|
| 107 | if ($sounds !== null) { |
|
| 108 | $notification['sources'] = [ |
|
| 109 | 'sounds' => [$sounds], |
|
| 110 | 'soundsVolume' => $soundsVolume !== null ? $soundsVolume : 0.5, |
|
| 111 | ]; |
|
| 112 | } |
|
| 113 | ||
| 114 | $this->notifications[] = $notification; |
|
| 115 | } |
|
| @@ 134-139 (lines=6) @@ | ||
| 131 | 'layout' => $layout, |
|
| 132 | 'text' => $text, |
|
| 133 | ]; |
|
| 134 | if ($sounds !== null) { |
|
| 135 | $notification['sources'] = [ |
|
| 136 | 'sounds' => [$sounds], |
|
| 137 | 'soundsVolume' => $soundsVolume !== null ? $soundsVolume : 0.5, |
|
| 138 | ]; |
|
| 139 | } |
|
| 140 | ||
| 141 | if ($this->session->has('laravel::flash-notifications')) { |
|
| 142 | $flashNotifications = $this->session->get('laravel::flash-notifications'); |
|