qcod/laravel-app-settings
Add a database-backed settings manager with an admin UI to your Laravel app. Define settings sections/inputs in config, edit them via a Bootstrap 4 page (or custom CSS), and access values via the AppSettings facade. Settings are cached for zero SQL reads.
Laravel 12.x Compatibility
app('app-settings')->setStorageGroup('my-storage-group')Laravel 6 Support
select options from a database dynamicallySavesSettings trait to be used on the controllerPackage has been split into two parts
qcod/laravel-app-settings which keeps the current API without any breaking changes andqcod/laravel-settings for a key-value pair in the databaseAdded image and file upload support in settings
check readme
[
'name' => 'logo',
'type' => 'image',
'label' => 'Upload logo',
'hint' => 'Must be an image and cropped in desired size',
'rules' => 'image|max:500',
'disk' => 'public', // which disk you want to upload, default to 'public'
'path' => 'app', // path on the disk, default to '/',
'preview_class' => 'thumbnail', // class for preview of uploaded image
'preview_style' => 'height:40px' // style for preview
]
Initial release
How can I help you explore Laravel packages today?