luismareze/geomanager

Create admin panels for presentation websites on Laravel, using page templates and LuisMareze\CRUD.


Keywords
cms, wordpress, crud, Content management system, admin panel, manage pages, backpack, presentation pages, presentation website, administer pages, pagemanager
License
MIT

Documentation

Backpack\Settings

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Style CI Total Downloads

An interface for the administrator to easily change application settings. Uses Laravel Backpack. On Laravel 5.2.

Subscribe to the Backpack Newsletter to be announced of any breaking changes or major updates (frequency: monthly or less).

Install

1) In your terminal:

$ composer require backpack/settings

2) Add the service provider to your config/app.php file:

Backpack\Settings\SettingsServiceProvider::class,

3) Run the migration and add some example settings:

$ php artisan vendor:publish --provider="Backpack\Settings\SettingsServiceProvider"
$ php artisan migrate
$ php artisan db:seed --class="Backpack\Settings\database\seeds\SettingsTableSeeder"

4) [Optional] Add a menu item for it in resources/views/vendor/backpack/base/inc/sidebar.blade.php or menu.blade.php:

<li><a href="{{ url('admin/setting') }}"><i class="fa fa-cog"></i> <span>Settings</span></a></li>

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.

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. http://laravelbackpack.com/docs)
  • active (1 or 0)
  • created_at
  • updated_at

There is no interface available to add new settings. They are added by the developer directly in the database, since the Dick CRUD field configuration is a bit complicated. See the field types and their configuration code on http://laravelbackpack.com/docs

Screenshots

See http://laravelbackpack.com

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

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email hello@tabacitu.ro instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.