R
R
Romi2021-05-11 17:50:27
Laravel
Romi, 2021-05-11 17:50:27

When I write in an Event-Listener - how to test the output from functions and all that stuff?

those. I call an event like this: but I have all sorts of conditions in the listener inside, an intermediate output of functions, it would be nice for me to see it during development - how to do this? how to withdraw and see?

event(new \App\Events\onSomeEvent($request));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2021-05-11
@romicohen

Use Telescope and dump() for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question