codeminos/laravel-settings
最新稳定版本:v1.0.2
Composer 安装命令:
composer require codeminos/laravel-settings
包简介
A simple settings management system for Laravel.
README 文档
README
A simple and flexible settings manager for Laravel applications, allowing you to store and retrieve application settings easily.
📦 Installation
You can install the package via Composer:
composer require codeminos/laravel-settings
Publish Configuration & Migrations
After installation, publish the config file and migration:
php artisan vendor:publish --provider="Codeminos\\Settings\\SettingsServiceProvider"
Then, run the migration:
php artisan migrate
⚡ Usage
Store a Setting
Settings::set('site_name', 'Codeminos');
Retrieve a Setting
$siteName = Settings::get('site_name');
Check if a Setting Exists
if (Settings::has('site_name')) {
// Do something
}
Delete a Setting
Settings::forget('site_name');
🛠 Configuration
The package configuration file config/settings.php allows you to define default settings and behavior.
🧪 Testing
To run the package tests, use:
composer test
📄 License
This package is open-source and licensed under the MIT License.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-26