The event function dispatches the given event to its listeners:
<?php event(new UserRegistered($user));
<?php     public function __invoke(Request $request)

    {

        event(new ReportGenerated());



        return view('report');

    }
<?php         BuildAccount::dispatch($user);



        event(new NewUser($user));



        $request->session()->flash('user.name', $user->name);
<?php         SyncMedia::dispatch($post);



        event(new NewPost($post));



        $request->session()->flash('post.title', $post->title);
<?php         SyncMedia::dispatch($post);



        event(new NewPost($post));



        $request->session()->flash('post.title', $post->title);
<?php         SyncMedia::dispatch($post);



        event(new NewPost($post));



        $request->session()->flash('post.title', $post->title);