protected static function registerModelEvent($event, $callback, $priority = 0)
    {
        if (isset(static::$dispatcher)) {
            $name = static::class;

            static::$dispatcher->listen("eloquent.{$event}: {$name}", $callback, $priority);
        }
    }
protected static function registerModelEvent($event, $callback, $priority = 0)
    {
        if (isset(static::$dispatcher)) {
            $name = static::class;

            static::$dispatcher->listen("eloquent.{$event}: {$name}", $callback, $priority);
        }
    }
protected static function registerModelEvent ( $ event , $ callback , $ priority = 0 ) { if ( isset ( static :: $ dispatcher ) ) { $ name = static :: class ; static :: $ dispatcher -> listen ( "eloquent.{$event}: {$name}" , $ callback , $ priority ) ; } }
Register a model event with the dispatcher.

@param  string $event
@param  \Closure|string $callback
@param  int $priority

@return void
Register a model event with the dispatcher .