/var/www/flurhymez/vendor/laravel/framework/src/Illuminate/Notifications
NameSizeModeActions
Channels/-0755rm
Console/-0755rm
Events/-0755rm
Messages/-0755rm
resources/-0755rm
Action.php4790644editdlrm
AnonymousNotifiable.php16430644editdlrm
ChannelManager.php39640644editdlrm
composer.json12160644editdlrm
DatabaseNotification.php28480644editdlrm
DatabaseNotificationCollection.php4810644editdlrm
HasDatabaseNotifications.php8010644editdlrm
LICENSE.md10750644editdlrm
Notifiable.php1200644editdlrm
Notification.php7680644editdlrm
NotificationSender.php74770644editdlrm
NotificationServiceProvider.php11630644editdlrm
RoutesNotifications.php13120644editdlrm
SendQueuedNotifications.php44870644editdlrm
Edit: /var/www/flurhymez/vendor/laravel/framework/src/Illuminate/Notifications/DatabaseNotification.php (2848B)
'array', 'read_at' => 'datetime', ]; /** * Get the notifiable entity that the notification belongs to. * * @return \Illuminate\Database\Eloquent\Relations\MorphTo */ public function notifiable() { return $this->morphTo(); } /** * Mark the notification as read. * * @return void */ public function markAsRead() { if (is_null($this->read_at)) { $this->forceFill(['read_at' => $this->freshTimestamp()])->save(); } } /** * Mark the notification as unread. * * @return void */ public function markAsUnread() { if (! is_null($this->read_at)) { $this->forceFill(['read_at' => null])->save(); } } /** * Determine if a notification has been read. * * @return bool */ public function read() { return $this->read_at !== null; } /** * Determine if a notification has not been read. * * @return bool */ public function unread() { return $this->read_at === null; } /** * Scope a query to only include read notifications. * * @param \Illuminate\Database\Eloquent\Builder $query * @return \Illuminate\Database\Eloquent\Builder */ public function scopeRead(Builder $query) { return $query->whereNotNull('read_at'); } /** * Scope a query to only include unread notifications. * * @param \Illuminate\Database\Eloquent\Builder $query * @return \Illuminate\Database\Eloquent\Builder */ public function scopeUnread(Builder $query) { return $query->whereNull('read_at'); } /** * Create a new database notification collection instance. * * @param array $models * @return \Illuminate\Notifications\DatabaseNotificationCollection */ public function newCollection(array $models = []) { return new DatabaseNotificationCollection($models); } }