• File: DatabaseNotificationCollection.php
  • Full Path: /home/masbinta/public_html/core/vendor/laravel/framework/src/Illuminate/Notifications/DatabaseNotificationCollection.php
  • File size: 481 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Illuminate\Notifications;

use Illuminate\Database\Eloquent\Collection;

class DatabaseNotificationCollection extends Collection
{
    /**
     * Mark all notifications as read.
     *
     * @return void
     */
    public function markAsRead()
    {
        $this->each->markAsRead();
    }

    /**
     * Mark all notifications as unread.
     *
     * @return void
     */
    public function markAsUnread()
    {
        $this->each->markAsUnread();
    }
}