{"id":15634532,"url":"https://github.com/rawilk/laravel-settings","last_synced_at":"2025-05-15T09:08:50.239Z","repository":{"id":57046770,"uuid":"284313090","full_name":"rawilk/laravel-settings","owner":"rawilk","description":"Store Laravel application settings in the database.","archived":false,"fork":false,"pushed_at":"2025-05-12T01:50:43.000Z","size":254,"stargazers_count":240,"open_issues_count":3,"forks_count":17,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-12T02:41:18.155Z","etag":null,"topics":["database-settings","eloquent-settings","laravel-settings","settings"],"latest_commit_sha":null,"homepage":"https://randallwilk.dev/docs/laravel-settings","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rawilk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"rawilk"}},"created_at":"2020-08-01T18:06:09.000Z","updated_at":"2025-05-12T01:50:40.000Z","dependencies_parsed_at":"2023-09-27T23:14:36.115Z","dependency_job_id":"fe73e8b9-d25f-41ef-9270-7cf600b82d92","html_url":"https://github.com/rawilk/laravel-settings","commit_stats":{"total_commits":154,"total_committers":5,"mean_commits":30.8,"dds":0.1428571428571429,"last_synced_commit":"7f5cf13e023a6b2af9dd519482d9936d69c22663"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":"rawilk/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rawilk%2Flaravel-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rawilk","download_url":"https://codeload.github.com/rawilk/laravel-settings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253665682,"owners_count":21944616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database-settings","eloquent-settings","laravel-settings","settings"],"created_at":"2024-10-03T10:53:54.341Z","updated_at":"2025-05-15T09:08:45.221Z","avatar_url":"https://github.com/rawilk.png","language":"PHP","funding_links":["https://github.com/sponsors/rawilk"],"categories":[],"sub_categories":[],"readme":"# Settings for Laravel\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/rawilk/laravel-settings.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-settings)\n![Tests](https://github.com/rawilk/laravel-settings/workflows/Tests/badge.svg?style=flat-square)\n[![Total Downloads](https://img.shields.io/packagist/dt/rawilk/laravel-settings.svg?style=flat-square)](https://packagist.org/packages/rawilk/laravel-settings)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/rawilk/laravel-settings?style=flat-square)](https://packagist.org/packages/rawilk/laravel-settings)\n[![License](https://img.shields.io/github/license/rawilk/laravel-settings?style=flat-square)](https://github.com/rawilk/laravel-settings/blob/main/LICENSE.md)\n\n![social image](https://banners.beyondco.de/Settings%20for%20Laravel.png?theme=light\u0026packageManager=composer+require\u0026packageName=rawilk%2Flaravel-settings\u0026pattern=architect\u0026style=style_1\u0026description=Store+Laravel+application+settings+in+the+database.\u0026md=1\u0026showWatermark=0\u0026fontSize=100px\u0026images=cog)\n\nSettings for Laravel allows you to store your application settings in the database. It works alongside of the built-in configuration system that Laravel offers. With this package, you can store application specific settings that wouldn't make sense to store in a configuration file, or that you want end-users to be able to update through your application's UI.\n\nThe package also offers caching on a per-setting basis out of the box, so no unnecessary extra queries are performed once a setting has been retrieved. The caching works no matter which driver you choose to use. The package can also encrypt your settings automatically for you as well if you need to store sensitive data such as passwords for a third-party service you need to be able to use later.\n\nTo get and retrieve stored settings, you can do it easily with the Settings Facade or by using the `settings()` helper function:\n\n```php\n// Setting\nSettings::set('foo', 'bar');\nsettings()-\u003eset('foo', 'bar');\nsettings(['foo' =\u003e 'bar']);\n\n// Retrieving\nSettings::get('foo'); // 'bar'\nsettings()-\u003eget('foo');\nsettings('foo');\n```\n\n## Documentation\n\nFor documentation, please visit: https://randallwilk.dev/docs/laravel-settings\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require rawilk/laravel-settings\n```\n\nYou can publish and run the migrations with:\n\n```bash\nphp artisan vendor:publish --tag=\"settings-migrations\"\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"settings-config\"\n```\n\nYou can view the default configuration here: https://github.com/rawilk/laravel-settings/blob/main/config/settings.php\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email randall@randallwilk.dev instead of using the issue tracker.\n\n## Credits\n\n-   [Randall Wilk](https://github.com/rawilk)\n-   [All Contributors](../../contributors)\n\n## Alternatives\n\n-   [spatie/laravel-settings](https://github.com/spatie/laravel-settings)\n\n## Disclaimer\n\nThis package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawilk%2Flaravel-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frawilk%2Flaravel-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frawilk%2Flaravel-settings/lists"}