Home
NexoPOS

AfterLoginFieldsEvent

AfterLoginFieldsEvent is dispatched on the sign-in page after the default login form fields are rendered. Modules can use it to append extra markup or links immediately below the login form.

Where It Runs

This event is implemented in resources/views/pages/auth/sign-in.blade.php and is dispatched after /common/auth/sign-in-form is included.

Available Properties

  • $event->output: an App\\Classes\\Output instance used to append rendered content with addView() or related output methods.

Listener Example

<?php

namespace Modules\MyModule\Listeners;

use App\Events\AfterLoginFieldsEvent;

class AfterLoginFieldsEventListener
{
    public function handle( AfterLoginFieldsEvent $event )
    {
        $event->output->addView( 'MyModule::auth.after-login-fields' );
    }
}

Summary

  • Use this event when a module needs to inject content at this exact form position.
  • Append module views with $event->output->addView().