| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | protected function buildPayload($notifiable, Notification $notification) |
||
| 19 | { |
||
| 20 | $data = $this->getData($notifiable, $notification); |
||
| 21 | return [ |
||
| 22 | 'id' => $notification->id, |
||
| 23 | 'type' => get_class($notification), |
||
| 24 | 'read_at' => null, |
||
| 25 | |||
| 26 | 'loan_id' => Arr::get($data, 'loan_id'), |
||
| 27 | 'data' => [ |
||
| 28 | 'email' => Arr::get($data, 'email'), |
||
| 29 | ], |
||
| 33 |