cmxperts/laravel-settings

Laravel Settings Manager

v1.02 2023-08-08 09:03 UTC

This package is auto-updated.

Last update: 2024-04-08 10:29:42 UTC


README

Settings Management for Laravel 10

Installation

  1. Run
composer require cmxperts/laravel-settings

Step 2 & 3 are optional if you are using laravel 5.5

  1. Add the following class, to "providers" array in the file config/app.php (optional on laravel 5.5)
CmXperts\Settings\SettingsServiceProvider::class,
  1. Run publish
php artisan vendor:publish --provider="CmXperts\Settings\SettingsServiceProvider"
  1. Configure (optional) in config/cmx_settings.php :
  • CUSTOM MIDDLEWARE: You can add you own middleware
  • TABLE PREFIX: By default this package will create 1 new table named "settings" but you can still add your own table prefix avoiding conflict with existing table
  • TABLE NAMES If you want use specific name of table you have to modify that and the migrations
  • Custom routes If you want to edit the route path you can edit the field
  • Role Access If you want to enable roles (permissions) on menu items
  1. Run migrate
php artisan migrate

DONE