RenderBeforeNewPasswordFormEvent
RenderBeforeNewPasswordFormEvent is dispatched before the new password form is rendered. Modules can use it to place instructions or verification UI above the form.
Where It Runs
This event is implemented in resources/views/pages/auth/new-password.blade.php before /common/auth/new-password-form is included.
Available Properties
$event->output: anApp\\Classes\\Outputinstance used to append rendered content withaddView()or related output methods.
Listener Example
<?php
namespace Modules\MyModule\Listeners;
use App\Events\RenderBeforeNewPasswordFormEvent;
class RenderBeforeNewPasswordFormEventListener
{
public function handle( RenderBeforeNewPasswordFormEvent $event )
{
$event->output->addView( 'MyModule::auth.before-new-password-form' );
}
}
Summary
- Use this event when a module needs to inject content at this exact form position.
- Append module views with
$event->output->addView().