Giter Site home page Giter Site logo

honsa / settings Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laravel-backpack/settings

0.0 1.0 0.0 163 KB

Application settings interface for Laravel 5 using Backpack CRUD.

Home Page: http://backpackforlaravel.com

License: Other

PHP 100.00%

settings's Introduction

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.

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.

Install

  1. In your terminal:
composer require backpack/settings
  1. For Laravel <5.5 apps, add the service provider to your config/app.php file:
Backpack\Settings\SettingsServiceProvider::class,
  1. Run the migration and add some example settings:
php artisan vendor:publish --provider="Backpack\Settings\SettingsServiceProvider"
php artisan migrate

## if you want to have some example entries in the database
php artisan db:seed --class="Backpack\Settings\database\seeds\SettingsTableSeeder"
  1. [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(config('backpack.base.route_prefix', '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:

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://laravel-backpack.readme.io/docs

Screenshots

See http://laravelbackpack.com

  • 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.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

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;

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

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.

Credits

License

Backpack is free for non-commercial use and 39 EUR/project for commercial use. Please see License File and backpackforlaravel.com for more information.

settings's People

Contributors

adriandmitroca avatar cenoura avatar eduardoarandah avatar emanuelecoppola avatar ghitu avatar imokhles avatar lloy0076 avatar parabellumkoval avatar paul-crashley avatar phouvanhkcsv avatar promatik avatar tabacitu avatar tolgap avatar tomsb avatar twmbx avatar vasiliy-bondarenko avatar xayer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.