Skip to content

Commit

Permalink
Merge pull request #4 from firevel/bugfix/event-dispatcher-connected
Browse files Browse the repository at this point in the history
Event dispatcher attached to model
  • Loading branch information
sl0wik authored Sep 23, 2019
2 parents ac467c0 + 82bb140 commit ea32691
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FirequentServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ class FirequentServiceProvider extends ServiceProvider
public function boot()
{
Model::setConnectionResolver(new ConnectionResolver);

Model::setEventDispatcher($this->app['events']);
}
}

0 comments on commit ea32691

Please sign in to comment.