blob: 37abb81633f0b256606376396314538d4be19f0d [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Adldap\Models\Concerns;
4
5use Adldap\Adldap;
6use Adldap\Models\Events\Event;
7
8trait HasEvents
9{
10 /**
11 * Fires the specified model event.
12 *
13 * @param Event $event
14 *
15 * @return mixed
16 */
17 protected function fireModelEvent(Event $event)
18 {
19 return Adldap::getEventDispatcher()->fire($event);
20 }
21}