It would be really nice if Laravel had automatic observer discovery similar to that of automatic policy discovery.
This would remove the need to add the following to the EventServiceProvider, keeping that file clean.
public function boot()
{
User::observe(UserObserver::class);
}
It would use the same educated guess that the policies use for observers that live in the App\Observers namespace.
{Model}::observe({Model}Observer::class)
It would be really nice if Laravel had automatic observer discovery similar to that of automatic policy discovery.
This would remove the need to add the following to the EventServiceProvider, keeping that file clean.
It would use the same educated guess that the policies use for observers that live in the App\Observers namespace.
{Model}::observe({Model}Observer::class)