问什么在_topic_replied.blade.php 获取不到 toDatabase () 返回的数据,该页面显示是空白页面

public function toDatabase($notifiable)
{
$topic = $this->reply->topic;
$link = $topic->link(['#reply' . $this->reply->id]);

    // 存入数据库里的数据
    return [
        'reply_id' => $this->reply->id,
        'reply_content' => $this->reply->content,
        'user_id' => $this->reply->user->id,
        'user_name' => $this->reply->user->name,
        'user_avatar' => $this->reply->user->avatar,
        'topic_link' => $link,
        'topic_id' => $topic->id,
        'topic_title' => $topic->title,
    ];
}

不是通过 $notification->data 拿到在通知类 toDatabase() 里构建的数组,我的_topic_replied.blade.php获取不到数据,页面显示是空白的

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!