/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Notifications/DatabaseNotificationCollection.php
34 строки
664 B
Andrew Brown
always alias the `Illuminate\Database\Eloquent\Collection` (#53735)
03 дек 2024, 19:15
Не верифицирован
03 дек 2024, 19:15
507f325
Код
Авторство
О чём код?
<?php namespace Illuminate\Notifications; use Illuminate\Database\Eloquent\Collection as EloquentCollection; /** * @template TKey of array-key * @template TModel of DatabaseNotification * * @extends \Illuminate\Database\Eloquent\Collection<TKey, TModel> */ class DatabaseNotificationCollection extends EloquentCollection { /** * 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(); } }