RenderSettingsFooterEvent
RenderSettingsFooterEvent is dispatched from the dashboard settings form footer. It gives modules access to the rendered footer output and the current settings page instance, making it useful for injecting assets or markup only for a specific settings screen.
Where It Runs
This event is implemented in resources/views/pages/dashboard/settings/form.blade.php. NexoPOS dispatches it with the current $instance used by the settings form.
Available Properties
$event->output: anApp\\Classes\\Outputinstance used to append rendered footer content.$event->instance: the current settings form instance. Use it to target a specific settings page.
Listener Example
<?php
namespace Modules\MyModule\Listeners;
use App\Events\RenderSettingsFooterEvent;
use Modules\MyModule\Settings\MyModuleSettings;
class RenderSettingsFooterEventListener
{
public function handle( RenderSettingsFooterEvent $event )
{
if ( $event->instance instanceof MyModuleSettings ) {
$event->output->addView( 'MyModule::settings.footer' );
}
}
}
Summary
- Use this event for footer output tied to settings forms.
- Check
$event->instancebefore adding a view when the content applies to one settings page only.