I am working on a web application where i need to notify the administrators of certain activities on the site. I have implemented a Message class which i use to create notifications. These messages are loaded by a Service Provider each time and shared to all the views. My problem now is how to update messages list on a global scope after an administrator acts on the list. For example if admin1 reads a message i want admin2 and admin3 to realize that the message in question has been replied.
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率

已采纳
如何在Laravel中跟踪通知?
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫
点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
1条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
douwen3836 2019-07-15 12:36关注I have been able to solve my problem. I actually used a service provider in which i load the messages from the database. The latte is being called for every request that the user sends hence by just refreshing the page each administrator will be able to get the updates on each of the notifications.
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报微信扫一扫
点击复制链接分享
编辑预览轻敲空格完成输入- 显示为
- 卡片
- 标题
- 链接
评论按下Enter换行,Ctrl+Enter发表内容
编辑
预览

轻敲空格完成输入
- 显示为
- 卡片
- 标题
- 链接
报告相同问题?
提交
- 2018-01-24 02:03回答 3 已采纳 You need to run npm run dev on your development server and npm run prod on your production server,
- 2018-04-09 02:30回答 1 已采纳 First of all, as I see here u have many columns in ur pivot table like date_begin and date_final s
- 2015-06-07 23:14回答 1 已采纳 In this case a nested where comes in handy: $invoice = Invoice::with("items", "salesPerson", "cli
- 2021-03-08 11:40您可以在此处查看演示:安装及使用请在此处找到完整的文档: : 变更日志有关更多信息,请参阅 。贡献有关详细信息,请参见。安全如果发现任何与安全相关的问题,请发送电子邮件至而不要使用问题跟踪器。学分执照MIT...
- 2013-09-04 10:36回答 1 已采纳 You can set a session variable upon user login to contain the name of the layout to use retrieved
- 2019-04-16 20:47回答 1 已采纳 I think You should try this code. In view <form role="search" method="GET"> <div cl
- 2019-04-19 01:36回答 1 已采纳 You can do something like counting in loops at first and then populating @php $casualCount = $med
- 2019-08-12 02:19回答 1 已采纳 You can exclude classes from the classmap(s) as follows in your composer.json. { "autoload":
- 2017-08-14 07:48回答 1 已采纳 You could try using... $dataCache = json_decode($request->data_cache); $request->merge(['i
- 2017-05-06 00:06回答 1 已采纳 The second one, https://github.com/dompdf/dompdf is the original core library, a pure PHP library.
- 2021-02-15 11:24在现代Web开发中,任务跟踪系统已经成为项目管理和团队协作不可或缺的一部分。本文将深入探讨如何使用PHP7.3和Laravel 6框架构建一个高效的任务跟踪器,同时结合MySQL(或其分支MariaDB)作为数据库管理系统,实现...
- 2021-02-03 04:48Lapse提供了一个漂亮的仪表板,无需查找日志文件即可跟踪生产中的错误。 此外,它可以通过Slack频道和电子邮件警报通知您。 而且,它可以通过所有渠道通知您。 场景的延迟取决于 。 从理论上讲,这意味着失效可以...
- 2021-05-26 23:44点火:Laravel应用程序的漂亮错误页面点火是运行在Laravel 5.5及更高版本...如果使用有效的Flare API密钥进行配置,系统将跟踪您在生产应用程序中的错误,并在发生错误时通知您。 官方文件点火的官方文件可以在下面找到
- 2020-08-31 14:45culi4814的博客 为此,我们必须在User模型中创建一个小的辅助函数: app/User.php app / User.php class User extends Authenticatable { [...] public function isFollowing($target_id) { return (bool)$this->follows()->where...
- 没有解决我的问题, 去提问
联系我们(工作时间:8:30-22:00)
400-660-0108kefu@csdn.net在线客服
- 京ICP备19004658号
- 经营性网站备案信息
公安备案号11010502030143
- 营业执照
- 北京互联网违法和不良信息举报中心
- 家长监护
- 中国互联网举报中心
- 网络110报警服务
- Chrome商店下载
- 账号管理规范
- 版权与免责声明
- 版权申诉
- 出版物许可证
- ©1999-2025北京创新乐知网络技术有限公司