Download the PHP package madnh/laravel-setting without Composer
On this page you can find all versions of the php package madnh/laravel-setting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download madnh/laravel-setting
More information about madnh/laravel-setting
Files in madnh/laravel-setting
Package laravel-setting
Short Description Simple setting for Laravel application
License MIT
Informations about the package laravel-setting
Laravel Setting
Simple setting for Laravel application
Install
Install with composer:
Add \MaDnh\LaravelSetting\LaravelSettingServiceProvider::class
to config/app.php
Usage
Commands
1. app:setting.publish
This command publish setting parts.
Syntax: app:setting.publish [options] [--] [<part>]
Part: setting parts, includes:
- model
- observer
- migration
- setting_init
- controller
- request
- vendor
- all
Use all
to publish all of parts.
If no parts are specified, then all of parts will be published.
Options
-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
Publish all of parts
Publish special parts
Publish parts with sub namespace
Publish vendor with tag
2. app:setting
Dump, init, import and export settings.
Syntax: app:setting [options] [--] [<action>]
Actions: action to do, optional. Supports:
dump
: Show settings detailpost
: Post settings from setting file (default isconfig/setting.php
) to DBmake
: Write settings from DB to setting file (default isconfig/setting.php
)init
: Clean DB, dopost
thenmake
If no action is specified, then use dump
as default action.
Options
--file=FILE
: File to load init settings, use ininit
andmake
action. If not specified then useconfig/setting_init.php
ininit
, orconfig/setting.php
inmake
.--name
: Setting name, use withdump
action. If missing then dump all of settings. Multiple values allowed