Skip to main content
By default, preferences are stored in the session — they reset on logout. To persist them per user instead:
1

Publish and run the migration

This adds a ui_preferences JSON column to your users table.
2

Add the HasUiPreferences trait to your User model

3

Switch the driver to database

config/ui-switcher.php
Preferences now save per-user and persist across logins.