Easily Register Laravel Observers with an Observable Trait

preview_player
Показать описание

If you're using Eloquent model observers, you'll know registering them can break your flow. How about a convenient trait to automatically hook up the associated observer? Let's build it!

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

Cool ! How is that bootObservable() is executed when booted??? is it because the naming convention??

turcoalv