@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class NotificationMap extends EntityMap |
8 | 8 | { |
9 | - /** |
|
10 | - * Get the entity's notifications. |
|
11 | - */ |
|
12 | - public function notifications() |
|
13 | - { |
|
14 | - return $this->morphMany(DatabaseNotification::class, 'notifiable') |
|
15 | - ->orderBy('created_at', 'desc'); |
|
16 | - } |
|
9 | + /** |
|
10 | + * Get the entity's notifications. |
|
11 | + */ |
|
12 | + public function notifications() |
|
13 | + { |
|
14 | + return $this->morphMany(DatabaseNotification::class, 'notifiable') |
|
15 | + ->orderBy('created_at', 'desc'); |
|
16 | + } |
|
17 | 17 | |
18 | - /** |
|
19 | - * Get the entity's read notifications. |
|
20 | - */ |
|
21 | - public function readNotifications() |
|
22 | - { |
|
23 | - return $this->notifications() |
|
24 | - ->whereNotNull('read_at'); |
|
25 | - } |
|
18 | + /** |
|
19 | + * Get the entity's read notifications. |
|
20 | + */ |
|
21 | + public function readNotifications() |
|
22 | + { |
|
23 | + return $this->notifications() |
|
24 | + ->whereNotNull('read_at'); |
|
25 | + } |
|
26 | 26 | |
27 | - /** |
|
28 | - * Get the entity's unread notifications. |
|
29 | - */ |
|
30 | - public function unreadNotifications() |
|
31 | - { |
|
32 | - return $this->notifications() |
|
33 | - ->whereNull('read_at'); |
|
34 | - } |
|
27 | + /** |
|
28 | + * Get the entity's unread notifications. |
|
29 | + */ |
|
30 | + public function unreadNotifications() |
|
31 | + { |
|
32 | + return $this->notifications() |
|
33 | + ->whereNull('read_at'); |
|
34 | + } |
|
35 | 35 | } |