HasDatabaseNotifications

Illuminate\Notifications\HasDatabaseNotifications

trait src/Illuminate/Notifications/HasDatabaseNotifications.php

notifications

v11.0.0 以前から

notifications()
@return \Illuminate\Database\Eloquent\Relations\MorphMany<DatabaseNotification, $this>
  1. v11.0.0 追加
    変更後
    notifications() [@return \Illuminate\Database\Eloquent\Relations\MorphMany]
  2. v11.15.0 シグネチャ変更
    変更前
    notifications() [@return \Illuminate\Database\Eloquent\Relations\MorphMany]
    変更後
    notifications() [@return \Illuminate\Database\Eloquent\Relations\MorphMany<DatabaseNotification, $this>]

readNotifications

v11.0.0 以前から

readNotifications()
@return \Illuminate\Database\Eloquent\Relations\MorphMany<DatabaseNotification, $this>
  1. v11.0.0 追加
    変更後
    readNotifications() [@return \Illuminate\Database\Query\Builder]
  2. v12.38.0 シグネチャ変更
    変更前
    readNotifications() [@return \Illuminate\Database\Query\Builder]
    変更後
    readNotifications() [@return \Illuminate\Database\Eloquent\Relations\MorphMany<DatabaseNotification, $this>]

unreadNotifications

v11.0.0 以前から

unreadNotifications()
@return \Illuminate\Database\Eloquent\Relations\MorphMany<DatabaseNotification, $this>
  1. v11.0.0 追加
    変更後
    unreadNotifications() [@return \Illuminate\Database\Query\Builder]
  2. v12.38.0 シグネチャ変更
    変更前
    unreadNotifications() [@return \Illuminate\Database\Query\Builder]
    変更後
    unreadNotifications() [@return \Illuminate\Database\Eloquent\Relations\MorphMany<DatabaseNotification, $this>]