Support the ongoing development of Laravel.io →
Laravel.io Architecture
Last updated 2 years ago.
0

Hi,

I'm pretty new to laravel and was looking at similar things with the thread. My understand is that typically you would have an create event fire that would be picked up by the listener. The authors have chosen to make the dependency more explicit by injecting the listener into the controller, which doesn't seem wrong but doesn't also seem to be using the event-listener combination.

J

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jojovem jojovem Joined 8 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.