2017 © Pedro Peláez
 

library laravel-setting

Simple setting for Laravel application

image

madnh/laravel-setting

Simple setting for Laravel application

  • Monday, December 4, 2017
  • by madnh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel Setting

Simple setting for Laravel application, (*1)

Install

Install with composer:, (*2)

composer require madnh/laravel-setting

Add \MaDnh\LaravelSetting\LaravelSettingServiceProvider::class to config/app.php, (*3)

'providers' => [
    ...
    \MaDnh\LaravelUpload\LaravelUploadServiceProvider::class,
    ...
]

Usage

Commands

1. app:setting.publish

This command publish setting parts., (*4)

Syntax: app:setting.publish [options] [--] [<part>], (*5)

Part: setting parts, includes:, (*6)

  • model
  • observer
  • migration
  • setting_init
  • controller
  • request
  • vendor
  • all

Use all to publish all of parts., (*7)

If no parts are specified, then all of parts will be published., (*8)

Options, (*9)

  • -f, --force: Overwrite any existing files
  • --tag: Publish tag (or group) registered by service provider. Examples: config, styles, views,...
  • --subns: Sub namespace of setting parts. Examples: Dashboard, Admin,...

Examples, (*10)

Publish all of parts, (*11)

php artisan app:setting.publish
php artisan app:setting.publish all

Publish special parts, (*12)

php artisan app:setting.publish request controller setting_init

Publish parts with sub namespace, (*13)

php artisan app:setting.publish request controller setting_init --subns=Dashboard

Publish vendor with tag, (*14)

php artisan app:setting.publish --tag=config --tag=styles
php artisan app:setting.publish controller vendor --subns=Dashboard --tag=scripts

2. app:setting

Dump, init, import and export settings., (*15)

Syntax: app:setting [options] [--] [<action>], (*16)

Actions: action to do, optional. Supports:, (*17)

  • dump: Show settings detail
  • post: Post settings from setting file (default is config/setting.php) to DB
  • make: Write settings from DB to setting file (default is config/setting.php)
  • init: Clean DB, do post then make

If no action is specified, then use dump as default action., (*18)

Options, (*19)

  • --file=FILE: File to load init settings, use in init and make action. If not specified then use config/setting_init.php in init, or config/setting.php in make.
  • --name: Setting name, use with dump action. If missing then dump all of settings. Multiple values allowed

The Versions

04/12 2017

dev-master

9999999-dev

Simple setting for Laravel application

  Sources   Download

MIT

The Requires

 

04/12 2017

v0.1

0.1.0.0

Simple setting for Laravel application

  Sources   Download

MIT

The Requires

 

04/08 2017

v0.0.1

0.0.1.0

Simple setting for Laravel application

  Sources   Download

MIT

The Requires