https://github.com/amdad121/setting-laravel
Setting option for Laravel
https://github.com/amdad121/setting-laravel
configuration laravel settings
Last synced: 3 months ago
JSON representation
Setting option for Laravel
- Host: GitHub
- URL: https://github.com/amdad121/setting-laravel
- Owner: amdad121
- License: mit
- Created: 2023-12-04T18:55:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-07T20:01:53.000Z (4 months ago)
- Last Synced: 2025-04-18T10:23:44.167Z (3 months ago)
- Topics: configuration, laravel, settings
- Language: PHP
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# Setting option for Laravel
[](https://packagist.org/packages/amdadulhaq/setting-laravel)
[](https://github.com/amdad121/setting-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/amdad121/setting-laravel/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/amdadulhaq/setting-laravel)This is a minimal setting option package for Laravel. You can easily use on your project.
## Installation
You can install the package via composer:
```bash
composer require amdadulhaq/setting-laravel
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --tag="setting-laravel-migrations"
php artisan migrate
```## Usage
```php
use AmdadulHaq\Setting\Models\Setting;Setting::set('app_name', 'Laravel');
return Setting::get('name');
// Laravelreturn Setting::remove('name');
// true
```or more simple ways
```php
setting()->set('app_name', 'Laravel');return setting()->get('app_name');
// Laravelreturn setting()->remove('app_name');
// true
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Amdadul Haq](https://github.com/amdad121)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.