The event function dispatches the given event to its listeners:
event(new UserRegistered($user));
                        $query->delete();



            if (
$count 0) {

                
event(new ModelsPruned(static::class, $total));

            }

        } while (
$count 0);
                $total += $models->count();



                
event(new ModelsPruned(static::class, $total));

            });



        return 
$total;
        if (! $this->user()->hasVerifiedEmail()) {

            
$this->user()->markEmailAsVerified();



            
event(new Verified($this->user()));

        }

    }
    public static function dispatch()

    {

        return 
event(new static(...func_get_args()));

    }
    public static function dispatchIf($boolean, ...$arguments)

    {

        if (
$boolean) {

            return 
event(new static(...$arguments));

        }

    }
    public static function dispatchUnless($boolean, ...$arguments)

    {

        if (! 
$boolean) {

            return 
event(new static(...$arguments));

        }

    }
    public function pruneAll()

    {

        
event(new ModelsPruned(static::class, 10));

        
event(new ModelsPruned(static::class, 20));



        return 
20;
    public function pruneAll()

    {

        
event(new ModelsPruned(static::class, 10));

        
event(new ModelsPruned(static::class, 20));



        return 
20;

    }
        Event::fake();



        
Model::handleLazyLoadingViolationUsing(function ($model$key) {

            
event(new ViolatedLazyLoadingEvent($model$key));

        });



        
EloquentStrictLoadingTestModel1::create();