我如何看到所有Laravel事件被解雇 [英] How Can I See All Laravel Events Being Fired

查看:54
本文介绍了我如何看到所有Laravel事件被解雇的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何看到所有laravel事件被触发或搜索特定于我的用例的事件.我应该能够看到在单个请求中引发的事件的列表.

How can I see all laravel events being fired or search for events that are specific to my use case. I should be able to see a list of events being fired during a single request.

推荐答案

您可以安装Laravel DebugBar: https ://github.com/barryvdh/laravel-debugbar

you can install Laravel DebugBar: https://github.com/barryvdh/laravel-debugbar

,然后在config/debugbar.php

'collectors' => [
    <snip>
    'events' => true,
    <snip>
];

然后您应该在应用程序的底部看到一个栏:

you should then see a bar at the bottom page of your app:

这篇关于我如何看到所有Laravel事件被解雇的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆