https://github.com/mazesec/lara-settings
💥 laravel settings is a Laravel package that allows you to add settings to your application.
https://github.com/mazesec/lara-settings
laravel package php settings
Last synced: 11 months ago
JSON representation
💥 laravel settings is a Laravel package that allows you to add settings to your application.
- Host: GitHub
- URL: https://github.com/mazesec/lara-settings
- Owner: mazesec
- License: mit
- Created: 2021-11-20T23:52:33.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-21T00:26:41.000Z (over 4 years ago)
- Last Synced: 2025-07-07T09:50:28.140Z (11 months ago)
- Topics: laravel, package, php, settings
- Language: PHP
- Homepage:
- Size: 373 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Settings
Any web application’s backend needs to have some sort of a settings from where you can change the various settings of your application.
for example you have an e-commerce app, you would like to have some settings such as site name, logos, shipping methods control, payment methods control ...
# Usage
## Installation
```bash
composer require tal7aouy/settings
```
- we will add a database seed for our settings table. Run below command in the terminal.
```bash
php artisan make:seed SettingsTableSeeder
```
here you can add all settings that you want for you application. 👇

call your `SettingsTableSeeder` in `DatabaseSeeder` class

now is the final step, run these commands to migrate `settings` table and Seed the database with records.
```bash
php artisan migrate
// then
php artisan db:seed
```
### use settings
```php
// site name
{{Config::get('settings.site_name')}}
//or
{{Config('settings.site_name')}}
```
## License
Laravel Settings is an open-sourced software licensed under the [MIT LICENSE](LICENSE)