| Package Data | |
|---|---|
| Maintainer Username: | madnh |
| Maintainer Contact: | dodanhmanh@gmail.com (MaDnh) |
| Package Create Date: | 2017-08-01 |
| Package Last Update: | 2017-12-04 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 15:02:16 |
| Package Statistics | |
|---|---|
| Total Downloads: | 41 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Simple setting for Laravel application
Install with composer:
composer require madnh/laravel-setting
Add \MaDnh\LaravelSetting\LaravelSettingServiceProvider::class to config/app.php
'providers' => [
...
\MaDnh\LaravelUpload\LaravelUploadServiceProvider::class,
...
]
app:setting.publishThis command publish setting parts.
Syntax: app:setting.publish [options] [--] [<part>]
Part: setting parts, includes:
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
php artisan app:setting.publish
php artisan app:setting.publish all
Publish special parts
php artisan app:setting.publish request controller setting_init
Publish parts with sub namespace
php artisan app:setting.publish request controller setting_init --subns=Dashboard
Publish vendor with tag
php artisan app:setting.publish --tag=config --tag=styles
php artisan app:setting.publish controller vendor --subns=Dashboard --tag=scripts
app:settingDump, 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 is config/setting.php) to DBmake: 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.
Options
--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