amjadiqbal/filament-record-settings
A Laravel/Filament package for managing settings tied to individual records. It lets you store and edit per-record preferences directly in Filament, making it easy to add customizable, record-specific settings to admin panels and resources.
Install the package via Composer, then publish its config and migrations using php artisan vendor:publish (use --force only when you intend to overwrite existing files). Run php artisan migrate.
Where to look first: the README sections added in v1.0.1 cover defaults order, glorand defaults, create vs edit filling, array keys, no-policy behaviour, and --force. The CHANGELOG documents the policy and validation fixes.
First use case: define a settings class (or use the package’s built-in settings) and update it through the package’s settings action rather than writing your own update logic. The action handles authorization via an updateSettings policy check and validation. A minimal controller method might call the action’s update method with the request data.
->authorize() yourself before invoking the action. As of v1.0.1 the action’s internal updateSettings policy check survives your own ->authorize() call.->recordSetting() on the action. Validation failures from glorand $settingsRules now appear under the corresponding field, so standard Laravel error display works.--force flag when republishing config or migrations after an upgrade, but only when you are prepared to overwrite local changes.updateSettings policy check is now compatible with your own ->authorize() calls. If you previously worked around double-authorization, you can remove that workaround. If no policy is defined, review the README’s “no-policy behaviour” section before relying on the action.$settingsRules failures on ->recordSetting() fields are shown under the field in v1.0.1. Make sure your Blade template uses the correct error bag and field names.--force: This flag overwrites published files. Use it deliberately, especially in production.How can I help you explore Laravel packages today?