Support the ongoing development of Laravel.io →
posted 9 years ago
Testing
Last updated 1 year ago.
0

I also had spent hours trying to solve this issue because I was trying to avoid workarounds. But in Laravel 5 we have a way that can solve the problem. Basically, I solved my problem using Observers: https://laravel.com/docs/5.3/eloquent#observers

Using Observers doesn't matter how many apps you created inside Laravel, all of them will receive the bindings from the listeners that you register in AppServiceProvider.php.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

orrd orrd Joined 3 Feb 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.