you can move your code into a Model Observer http://laravel.com/docs/eloquent#model-observers
zenry said:
you can move your code into a Model Observer http://laravel.com/docs/eloquent#model-observers
Where is the best way to declare User::observe(new UserObserver); ?
Tavicu said:
zenry said:
you can move your code into a Model Observer http://laravel.com/docs/eloquent#model-observers
Where is the best way to declare User::observe(new UserObserver); ?
ServiceProvider -> boot() method
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community