PHPackages                             turkialawlqy/laravel-app-settings - 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. [Database &amp; ORM](/categories/database)
4. /
5. turkialawlqy/laravel-app-settings

ActiveLibrary[Database &amp; ORM](/categories/database)

turkialawlqy/laravel-app-settings
=================================

A package with UI to store and manage all the settings for your application

1.0.2(4y ago)19MITPHPPHP ^7.2|^8.0

Since Oct 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/turkialawlqy/laravel-app-settings)[ Packagist](https://packagist.org/packages/turkialawlqy/laravel-app-settings)[ Docs](https://github.com/turkialawlqy/laravel-app-settings)[ RSS](/packages/turkialawlqy-laravel-app-settings/feed)WikiDiscussions main Synced 3d ago

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

Laravel App Settings
--------------------

[](#laravel-app-settings)

[![Latest Version on Packagist](https://camo.githubusercontent.com/de334609960dbd07a4a914887c8ac4a772b913207f23f534fcb77aab37bbb12b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7475726b69616c61776c71792f6c61726176656c2d6170702d73657474696e67732e737667)](https://packagist.org/packages/turkialawlqy/laravel-app-settings)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/6df9539165bd0f74bd05c7eaede77f15579e0809d6262b7bbc37178f9fc42fe7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7475726b69616c61776c71792f6c61726176656c2d6170702d73657474696e67732f6d61737465722e737667)](https://travis-ci.org/turkialawlqy/laravel-app-settings)[![Total Downloads](https://camo.githubusercontent.com/de21e5236b53343e095edca2770e4886b6ce8aec077b2baa3cb3a6d4c3712597/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7475726b69616c61776c71792f6c61726176656c2d6170702d73657474696e67732e737667)](https://packagist.org/packages/turkialawlqy/laravel-app-settings)

Use `turkialawlqy/laravel-app-settings` to add settings manager with UI in your Laravel app. It stores settings in the database and by default uses Bootstrap 4 for styling but you can configure it to work with any css system.

> All the settings saved in db are cached to improve performance by reducing sql query to zero.

### Installation

[](#installation)

**1** - You can install the package via composer:

```
$ composer require turkialawlqy/laravel-app-settings
```

**2** - If you are installing on Laravel 5.4 or lower you will be needed to manually register Service Provider by adding it in `config/app.php` providers array and Facade in aliases arrays.

```
'providers' => [
    //...
    turkialawlqy\AppSettings\AppSettingsServiceProvider::class,
]

'aliases' => [
    //...
    "AppSettings" => turkialawlqy\AppSettings\Facade::class
]
```

In Laravel 5.5 or above the service provider automatically get registered and a facade `AppSettings::get('app_name')` will be available.

**3** - Now you should publish the config file with:

```
php artisan vendor:publish --provider="turkialawlqy\AppSettings\AppSettingsServiceProvider" --tag="config"
```

It will create [`config/app_settings.php`](#config-file) with all the configuration option and way to define your setting inputs divided into sections.

**4** - Now run the migration by `php artisan migrate` to create the settings table.

### Getting Started

[](#getting-started)

First you need to define all the settings you want in our settings page. For example we will need these settings `app_name`, `from_email` &amp; `from_name`. Lets define it in config:

**config/app\_settings.php**

```
