PHPackages                             crow/laravel-setting-lite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. crow/laravel-setting-lite

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crow/laravel-setting-lite
=========================

laravel setting lite

1.0.0(1y ago)04MITPHPPHP &gt;=8.2

Since Nov 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gavoronok30/laravel-setting-lite)[ Packagist](https://packagist.org/packages/crow/laravel-setting-lite)[ RSS](/packages/crow-laravel-setting-lite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Description
-----------

[](#description)

System settings for the site, using the database.

- convenient and easy way to get values from system settings
- command to synchronize system settings between seeds and database

Install
-------

[](#install)

Open file **bootstrap/providers.php** and connect the provider from the package (optional, using laravel discovered package system by default)

```
\Crow\LaravelSettingLite\Providers\SettingServiceProvider::class,

```

Run commands
------------

[](#run-commands)

For creating config file

```
php artisan vendor:publish --provider="Crow\LaravelSettingLite\Providers\SettingServiceProvider" --tag=config

```

For creating language file (if need for setting description or custom exception text)

```
php artisan vendor:publish --provider="Crow\LaravelSettingLite\Providers\SettingServiceProvider" --tag=lang

```

For creating migration file

```
php artisan setting:publish --tag=migration

```

For generate table

```
php artisan migrate

```

Configure seed file
-------------------

[](#configure-seed-file)

**1.** Create seeder file if not exists for settings. In the created seed file, you need to add a static method (for example, `public static function data()`). The method must return an array of standard to fill the database

**2.** Open config file `config/setting_lite.php` and add this class and method in exists parameters

```
'data' => [
    'class' => \Database\Seeders\SettingTableSeeder::class,
    'method' => 'data',
],

```

**3** Example content seeder file `database/seeders/SettingTableSeeder.php`

```
