Single page to edit settings
Hej there
How would you build a single-edit-page to let users edit settings?
Usecase: Multi-Tenant App. One User is related to one shop.
If Clicking on Settings / General / Whatever in the legt side menu, i would like to show an edit Form for his settings, without showing a listing.
1. Which approaches are there?
2. Which approach would you choose?
Thanks in Advance ☺️
Solution:Jump to solution
I think Spatie does help out here 🙂
https://github.com/filamentphp/spatie-laravel-settings-plugin/blob/3.x/src/Pages/SettingsPage.php...
GitHub
spatie-laravel-settings-plugin/src/Pages/SettingsPage.php at 3.x · ...
[READ ONLY] Subtree split of the Filament spatie/laravel-settings Plugin (see filamentphp/filament) - filamentphp/spatie-laravel-settings-plugin
3 Replies
There are multiple plugins that offer that functionality. Maybe check those?
https://filamentphp.com/plugins?search=settings
If you want to roll this your own: It's just a page with a Form.
Filament
Plugins - Filament
Community made packages for Filament projects, which give you access to awesome new features.
I would prefer to not rely on a dependency for that and hoped for a heads up, as I am not that deep into Filament yet.
I'll play around with a custom page and Forms. Thanks.
Solution
I think Spatie does help out here 🙂
https://github.com/filamentphp/spatie-laravel-settings-plugin/blob/3.x/src/Pages/SettingsPage.php
GitHub
spatie-laravel-settings-plugin/src/Pages/SettingsPage.php at 3.x · ...
[READ ONLY] Subtree split of the Filament spatie/laravel-settings Plugin (see filamentphp/filament) - filamentphp/spatie-laravel-settings-plugin