📜  如何从数据库中列出通知 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:02.496000             🧑  作者: Mango

代码示例1
$user = App\Models\User::find(1);

foreach ($user->unreadNotifications as $notification) {
    echo $notification->type;
}