{"repo":"spatie/laravel-settings","free":true,"listed":false,"github":"https://github.com/spatie/laravel-settings","clone":"git clone https://github.com/spatie/laravel-settings.git","description":"Store strongly typed application settings","language":"PHP","stars":1512,"topics":["laravel","settings","dto","typed","spatie"],"license":"MIT","category":"databases-storage","readme_excerpt":"Store strongly typed application settings This package allows you to store settings in a repository (database, Redis, ...) and use them through an application without hassle. You can create a settings class as such: If you want to use these settings somewhere in your application, you can inject them, since we register them in the Laravel Container. For example, in a controller: You can update the settings as such: Let's take a look at how to create your own settings classes. Support us We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall. Installation You can install the package via composer: You can publish and run the migrations with: You can publish the config file with: This is the contents of the published config file: Usage The package is built around settings classes, which are classes with public properties that extend from Settings . They also have a static method group that should return a string. You can create multiple groups of settings, each with their settings class. You could, for example, have GeneralSettings with the general group and BlogSettings with the blog group. It's up to you how to structure these groups. Although it is possible to use the same group","default_branch":null,"files":null,"tree":[],"storefront":"/r/spatie","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spatie/laravel-settings/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}