Download the PHP package visual-ideas/laravel-site-settings without Composer
On this page you can find all versions of the php package visual-ideas/laravel-site-settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download visual-ideas/laravel-site-settings
More information about visual-ideas/laravel-site-settings
Files in visual-ideas/laravel-site-settings
Package laravel-site-settings
Short Description Easy Laravel nested settings (stored in MYSQL) package with MoonShine Laravel Admin GUI
License MIT
Homepage https://github.com/visual-ideas/laravel-site-settings
Informations about the package laravel-site-settings
Easy laravel cached settings
Easy laravel cached settings (stored in MYSQL) package with MoonShine/Filament Laravel Admin GUI
Installation
You can install the package via composer:
You must run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Usage
You can use this package as default laravel config() function!
or Blade directive @settings
For PHPStorm you can set this blade directive with This instruction
or as part of native Laravel config()
Not working in console!
Update settings
You can use models VI\LaravelSiteSettings\Models\SettingGroup and VI\LaravelSiteSettings\Models\Setting
or set settings values with the settings() function:
Usage with MoonShine Laravel Admin panel
Please see MoonShine
You can use settings in your MoonShine admin panel, like this:
Usage with Filament Laravel Admin panel
Please see Filament
You can use settings in your Filament admin panel!
Just change config file:
Seeding settings
I recommend saving the settings in the seeders using the orangehill/iseed package:
But you can use seeder or migration to set your settings
Credits
License
The MIT License (MIT). Please see License File for more information.