I have create a new laravel application and migrated the default migrations. I have also generated the default authentication scaffolding. However, when I go to register a user I get the following error message: Class setEventDispatcher does not exist

Try reserving your project: valet restart or relevant.
https://stackoverflow.com/questions/53964061/laravel-error-class-seteventdispatcher-does-not-exist
I have tried restarting valet. However, I am still experiencing the same issue.
https://github.com/laravel/framework/issues/27052
This is a known PHP 7.3.0 bug. You should update your PHP version (ideally to 7.3.2).
That seemed to fix the problem @X-Coder264, thank you for your help.
Most helpful comment
https://github.com/laravel/framework/issues/27052
This is a known PHP 7.3.0 bug. You should update your PHP version (ideally to 7.3.2).