2017 © Pedro Peláez
 

library settings

Application settings interface for Laravel 5 using Backpack CRUD.

image

backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  • Friday, April 20, 2018
  • by tabacitu
  • Repository
  • 18 Watchers
  • 77 Stars
  • 107,100 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 41 Forks
  • 5 Open issues
  • 48 Versions
  • 13 % Grown

The README.md

Backpack\Settings

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score Style CI ![Total Downloads][ico-downloads], (*1)

An interface for the administrator to easily change application settings. Uses Laravel Backpack. Works on Backpack v4, v5 and v6., (*2)

Security updates and breaking changes

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months., (*3)

Install

Note: The default table name is settings, if you need to change it please carefully read the comments in the instruction below., (*4)

In your terminal:, (*5)

``` bash, (*6)

install the package

composer require backpack/settings, (*7)

[optional] if you need to change table name or migration name, please do it now before proceding

php artisan vendor:publish --provider="Backpack\Settings\SettingsServiceProvider" --tag="config", (*8)

then change the values you need in in config/backpack/settings.php

publish & run the migration

php artisan vendor:publish --provider="Backpack\Settings\SettingsServiceProvider" php artisan migrate, (*9)

[optional] add a menu item for it

For Backpack v6

php artisan backpack:add-menu-content "<:menu-item title="Settings" icon="la la-cog" :link="\"backpack_url('setting')\"">", (*10)

For Backpack v5 or v4

php artisan backpack:add-sidebar-content ", (*11)

"

[optional] insert some example dummy data to the database

php artisan db:seed --class="Backpack\Settings\database\seeds\SettingsTableSeeder", (*12)


## Usage ### End user Add it to the menu or access it by its route: **application/admin/setting** ### Programmer Use it like you would any config value in a virtual settings.php file. Except the values are stored in the database and fetched on boot, instead of being stored in a file. ``` php Setting::get('contact_email') // or Config::get('settings.contact_email')

Add new settings

Settings are stored in the database in the "settings" table. Its columns are: - id (ex: 1) - key (ex: contact_email) - name (ex: Contact form email address) - description (ex: The email address that all emails go to.) - value (ex: admin@laravelbackpack.com) - field (Backpack CRUD field configuration in JSON format. The "name" of the field is mandatory to be "value") - see the field types and their configuration code on https://backpackforlaravel.com/docs/crud-fields#default-field-types - active (1 or 0) - created_at - updated_at, (*13)

There is no interface available to add new settings. They are added by the developer directly in the database, since the Backpack CRUD field configuration is a bit complicated. See the field types and their configuration code on https://backpackforlaravel.com/docs, (*14)

Override existing configurations

You can use this addon to make various Laravel configurations adjustable through the settings GUI, including Backpack settings themself. For example, you can override the Backpack show_powered_by setting in /config/backpack/ui.php., (*15)

  1. Create the setting entry in your settings database. You can add the settings manually, or via Laravel seeders. The values inserted into the database should be look similar to below:, (*16)

    For Backpack show_powered_by setting:, (*17)

Field Value
key show_powered_by
name Showed Powered By
description Whether to show the powered by Backpack on the bottom right corner or not.
value 1
field {"name":"value","label":"Value","type":"checkbox"}
active 1

NOTE: The field column should be a JSON string. The name key in the JSON string should be value. Using any other key will not work., (*18)

  1. Open up the app/Providers/AppServiceProvider file, and add the below lines:, (*19)

    ```diff <?php, (*20)

    namespace App\Providers;, (*21)

    use Illuminate\Support\ServiceProvider;, (*22)

    class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() {, (*23)

    • $this->overrideConfigValues();

      }, (*24)

      /**, (*25)

      • Register any application services.
      • @return void */ public function register() { // }
  • protected function overrideConfigValues()
  • {
  • $config = [];
  • if (config('settings.show_powered_by')) {
  • $config['backpack.ui.show_powered_by'] = config('settings.show_powered_by') == '1';
  • }
  • config($config);
  • } } ```

Screenshots

See backpackforlaravel.com, (*26)

  • List view: List / table view in Backpack/Settings
  • Editing a setting with the email field type:

Change log

Please see CHANGELOG for more information what has changed recently., (*27)

Testing

bash $ composer test, (*28)

Contributing

Please see CONTRIBUTING for details., (*29)

Overwriting Functionality

If you need to modify how this works in a project: - create a routes/backpack/settings.php file; the package will see that, and load your routes file, instead of the one in the package; - create controllers/models that extend the ones in the package, and use those in your new routes file; - modify anything you'd like in the new controllers/models;, (*30)

Security

If you discover any security related issues, please email tabacitu@backpackforlaravel.com instead of using the issue tracker., (*31)

Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months., (*32)

Credits

License

Backpack is free for non-commercial use and 69 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information., (*33)

Hire us

We've spend more than 50.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels so much, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects., (*34)

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience & enthusiasm for this. This is what we do. Contact us. Let's see if we can work together., (*35)

The Versions

20/04 2018

dev-fix-inactive-settings

dev-fix-inactive-settings https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

18/04 2018

dev-master

9999999-dev https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

18/04 2018

2.1.0

2.1.0.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

18/04 2018

2.0.31

2.0.31.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

05/04 2018

dev-german-translation

dev-german-translation https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

06/03 2018

2.0.30

2.0.30.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

05/03 2018

2.0.29

2.0.29.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

05/03 2018

2.0.28

2.0.28.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

15/12 2017

2.0.27

2.0.27.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

02/12 2017

2.0.26

2.0.26.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

22/11 2017

2.0.25

2.0.25.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

14/11 2017

2.0.24

2.0.24.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

proprietary

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

02/11 2017

2.0.23

2.0.23.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

30/08 2017

2.0.22

2.0.22.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

11/08 2017

2.0.21

2.0.21.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

11/08 2017

2.0.20

2.0.20.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

06/07 2017

2.0.19

2.0.19.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

05/07 2017

2.0.18

2.0.18.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

05/07 2017

2.0.17

2.0.17.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

09/06 2017

dev-feature/db-seed-command-feedback

dev-feature/db-seed-command-feedback https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

21/04 2017

2.0.16

2.0.16.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

14/02 2017

2.0.15

2.0.15.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

14/02 2017

2.0.14

2.0.14.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

08/01 2017

2.0.13

2.0.13.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

13/12 2016

2.0.12

2.0.12.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

07/12 2016

2.0.11

2.0.11.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

21/09 2016

2.0.10

2.0.10.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

31/08 2016

2.0.9

2.0.9.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

05/08 2016

2.0.8

2.0.8.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

31/07 2016

2.0.7

2.0.7.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

23/07 2016

2.0.6

2.0.6.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

12/07 2016

2.0.5

2.0.5.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

06/06 2016

2.0.4

2.0.4.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

02/06 2016

2.0.3

2.0.3.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

02/06 2016

2.0.2

2.0.2.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

20/05 2016

dev-analysis-8ne2my

dev-analysis-8ne2my https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

20/05 2016

2.0.1

2.0.1.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

20/05 2016

2.0.0

2.0.0.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

16/03 2016

1.2.3

1.2.3.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

11/03 2016

1.2.2

1.2.2.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

11/03 2016

1.2.1

1.2.1.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

11/03 2016

1.2.0

1.2.0.0 https://github.com/laravel-backpack/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision backpack laravel backpack dick settings manage settings settings admin backpack settings

10/09 2015

1.1.2

1.1.2.0 https://github.com/tabacitu/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision dick settings manage settings settings admin

07/09 2015

1.1.1

1.1.1.0 https://github.com/tabacitu/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision dick settings manage settings settings admin

06/09 2015

1.1

1.1.0.0 https://github.com/tabacitu/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision dick settings manage settings settings admin

28/08 2015

1.0.3

1.0.3.0 https://github.com/tabacitu/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision dick settings manage settings settings admin

28/08 2015

1.0.2

1.0.2.0 https://github.com/tabacitu/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision dick settings manage settings settings admin

27/07 2015

1.0.1

1.0.1.0 https://github.com/tabacitu/settings

Application settings interface for Laravel 5 using Dick CRUD.

  Sources   Download

MIT

The Requires

 

The Development Requires

dick tabacitu updivision dick settings manage settings settings admin