PHPackages                             it-devgroup/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. it-devgroup/laravel-setting-lite

Abandoned → [crow/laravel-setting-lite](/?search=crow%2Flaravel-setting-lite)Library[Utility &amp; Helpers](/categories/utility)

it-devgroup/laravel-setting-lite
================================

laravel setting lite

2.0.0(3y ago)0360MITPHPPHP ^8.0

Since May 11Pushed 3y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (7)Used By (0)

Install for Lumen
-----------------

[](#install-for-lumen)

**1.** Open file `bootstrap/app.php`

Uncommented strings

```
$app->withFacades();
$app->withEloquent();

```

Added after **$app-&gt;configure('app');**

```
$app->configure('setting_lite');

```

add new service provider

```
$app->register(\ItDevgroup\LaravelSettingLite\Providers\SettingServiceProvider::class);

```

**2.** Run commands

For creating config file

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

```

For creating lang file

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

```

For creating migration file

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

```

For generate table

```
php artisan migrate

```

Install for laravel
-------------------

[](#install-for-laravel)

**1.** Open file **config/app.php** and search

```
    'providers' => [
        ...
    ]

```

Add to section

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

```

Example

```
    'providers' => [
        ...
        \ItDevgroup\LaravelSettingLite\Providers\SettingServiceProvider::class,
    ]

```

**2.** Run commands

For creating config file

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

```

For creating language file (if need for setting description)

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

```

For creating migration file

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

```

For generate table

```
php artisan migrate

```

Next steps install for laravel and lumen
----------------------------------------

[](#next-steps-install-for-laravel-and-lumen)

**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' => SettingTableSeeder::class,
    'method' => 'data',
],

```

Command for sync settings
-------------------------

[](#command-for-sync-settings)

```
php artisan setting:sync

```

Custom model
------------

[](#custom-model)

###### Step 1

[](#step-1)

Create custom model for setting

Example:

File: **app/CustomFile.php**

Content:

```
