Skip to content

Conversation

@gvieira18
Copy link
Member

This pull request introduces a custom logout response for Filament and ensures it is properly registered and used throughout the application. The main changes include implementing the custom response, binding it to the Filament contract, and updating the service provider registration.

Custom Logout Response Implementation:

  • Added a new LogoutResponse class in app/Filament/Shared/Responses/LogoutResponse.php that implements Filament's logout response contract and redirects users to the filament.guest.pages.portal-page route after logout.

Service Provider Registration:

  • Created a new FilamentServiceProvider in app/Providers/FilamentServiceProvider.php that binds the Filament logout response contract to the custom LogoutResponse implementation.
  • Registered the new FilamentServiceProvider in bootstrap/providers.php to ensure the binding is active in the application lifecycle.

Minor Blade Template Update:

  • Changed the heredoc label from BLADE to HTML in the guest panel provider's renderHook call for clarity and consistency.

@gvieira18 gvieira18 self-assigned this Dec 23, 2025
@gvieira18 gvieira18 merged commit 8b5c2fb into 1.x Dec 23, 2025
5 checks passed
@gvieira18 gvieira18 deleted the fix/logout-redirect branch December 23, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants