diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index c3f86b3..0cca5e4 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -20,4 +20,12 @@ public static function boot() static::bootStapler(); } -``` \ No newline at end of file +``` + +When using the [Illuminate Database component](https://github.com/illuminate/database) without Laravel, make sure the event dispatcher is set! +``` +// Set the event dispatcher +use Illuminate\Events\Dispatcher; +use Illuminate\Container\Container; +$capsule->setEventDispatcher(new Dispatcher(new Container)); +```