Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Notifications;
4
 
5
use Illuminate\Database\Eloquent\Collection;
6
 
7
class DatabaseNotificationCollection extends Collection
8
{
9
    /**
10
     * Mark all notifications as read.
11
     *
12
     * @return void
13
     */
14
    public function markAsRead()
15
    {
16
        $this->each->markAsRead();
17
    }
18
 
19
    /**
20
     * Mark all notifications as unread.
21
     *
22
     * @return void
23
     */
24
    public function markAsUnread()
25
    {
26
        $this->each->markAsUnread();
27
    }
28
}