BeforeSignUpEvent
BeforeSignUpEvent is dispatched before NexoPOS creates a new user during registration. Modules can listen to it for pre-registration checks or integrations.
Where It Runs
This event is dispatched in App\\Http\\Controllers\\AuthController::postSignUp() before the user service creates the account.
Available Properties
$event->request: the validatedApp\\Http\\Requests\\SignUpRequestinstance. It contains fields such asusername,email,password, andpassword_confirm.
Listener Example
<?php
namespace Modules\MyModule\Listeners;
use App\Events\BeforeSignUpEvent;
class BeforeSignUpEventListener
{
public function handle( BeforeSignUpEvent $event )
{
$email = $event->request->input( 'email' );
}
}
Summary
- Use this event to inspect or react to a validated request before NexoPOS continues the operation.
- Keep listener logic focused and avoid replacing core validation rules when a FormRequest rule is more appropriate.