simonmarcellinden/databasesettings
Composer 安装命令:
composer require simonmarcellinden/databasesettings
包简介
Package for save seeings in your database.
README 文档
README
DatabaseSettings is a package to easily store settings in the database and retrieve the setting using config('settings').
Installation
Via Composer
$ composer require simonmarcellinden/databasesettings
Register the package's service provider in config/app.php. In Laravel versions 5.5 and beyond, this step can be skipped if package auto-discovery is enabled.
Open and add the service provider to bootstrap/app.php
$app->register(\SimonMarcelLinden\DatabaseSettings\DatabaseSettingsProvider::class);
Publish the configurations
Run this on the command line from the root of your project:
$ no config needed
Run the migrations to add the required tables to your database.
$ php artisan migrate:fresh
Run seed for example settings
$ php artisan db:seed --class=SimonMarcelLinden\DatabaseSettings\Database\Seeders\SettingSeeder
Default Routes
Default routes for store/update & view setting
$router->group(['prefix' => 'image'], function () use ($router) { $router->get('/{id}', 'ImageController@show'); $router->post('/upload', 'ImageController@upload'); $router->delete('/delete/{id}', 'ImageController@delete'); });
Add a Script or Style Source directly into your route or controller
Change log
Please see the changelog for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email info@snerve.de instead of using the issue tracker.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-30