{"id":19959059,"url":"https://github.com/anisaronno/laravel-settings","last_synced_at":"2025-08-20T05:11:51.996Z","repository":{"id":199474288,"uuid":"702959000","full_name":"anisAronno/laravel-settings","owner":"anisAronno","description":"A Laravel package for managing application settings, similar to WordPress options.","archived":false,"fork":false,"pushed_at":"2024-04-18T05:31:25.000Z","size":1384,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T22:35:20.970Z","etag":null,"topics":["application-settings","laravel-options","laravel-settings"],"latest_commit_sha":null,"homepage":"","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/anisAronno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-10T10:30:45.000Z","updated_at":"2023-11-02T13:07:09.000Z","dependencies_parsed_at":"2023-12-21T06:31:34.488Z","dependency_job_id":"2ad662f4-64e8-4067-8a00-1929d36bd880","html_url":"https://github.com/anisAronno/laravel-settings","commit_stats":null,"previous_names":["anisaronno/laravel-settings"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/anisAronno/laravel-settings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisAronno%2Flaravel-settings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisAronno%2Flaravel-settings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisAronno%2Flaravel-settings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisAronno%2Flaravel-settings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anisAronno","download_url":"https://codeload.github.com/anisAronno/laravel-settings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anisAronno%2Flaravel-settings/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262502387,"owners_count":23321143,"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":["application-settings","laravel-options","laravel-settings"],"created_at":"2024-11-13T01:45:54.121Z","updated_at":"2025-06-28T21:32:13.308Z","avatar_url":"https://github.com/anisAronno.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Settings Package\n- Laravel settings control as like as WordPress options\n\n## Table of Contents\n- [Laravel Settings Package](#laravel-settings-package)\n  - [Table of Contents](#table-of-contents)\n  - [Introduction](#introduction)\n  - [Installation](#installation)\n    - [Publish Migration, Factory, Config, and Seeder](#publish-migration-factory-config-and-seeder)\n    - [Run Migration](#run-migration)\n    - [Run Seeder](#run-seeder)\n  - [Usage](#usage)\n    - [Check if a Key Exists in Database](#check-if-a-key-exists-in-database)\n    - [Get Settings Field](#get-settings-field)\n    - [Get All Settings Fields](#get-all-settings-fields)\n    - [Set Settings](#set-settings)\n    - [Update Settings](#update-settings)\n    - [Update or Create Settings](#update-or-create-settings)\n    - [Delete Settings](#delete-settings)\n  - [Contribution Guide](#contribution-guide)\n  - [License](#license)\n\n## Introduction\nThe Laravel Settings package simplifies the management of application settings in your Laravel project. This README provides installation instructions, usage examples, and additional information.\n\n## Installation\nTo get started, install the package using Composer:\n\n```shell\ncomposer require anisaronno/laravel-settings\n```\n\n### Publish Migration, Factory, Config, and Seeder\nYou need to publish migration files, factories, configuration files, and a seeder:\n\n```shell\nphp artisan vendor:publish --tag=settings-migration\n```\n\n### Run Migration\nApply the migrations to set up the settings table:\n\n```shell\nphp artisan migrate\n```\n\n### Run Seeder\nSeed the settings table with initial data:\n\n```shell\nphp artisan db:seed --class=LaravelSettingsSeeder::class\n```\n\n## Usage\nThe package provides methods for managing settings. Here are the available functions:\n\n### Check if a Key Exists in Database\nYou can use the `hasSettings` method to check if a key exists in the database:\n\n```php\nhasSettings(string $key);\n```\n\n### Get Settings Field\nRetrieve a specific setting using its key:\n\n```php\ngetSettings(string $key);\n```\n\n### Get All Settings Fields\nFetch all settings fields:\n\n```php\ngetAllSettings();\n```\n\n### Set Settings\nCreate or update a setting:\n\n```php\nsetSettings(string $key, string $value);\n```\n\n### Update Settings\nUpdate an existing setting:\n\n```php\nupdateSettings(string $key, string $value);\n```\n\n### Update or Create Settings\nUpdate or Create setting:\n\n```php\nupsertSettings(string $key, string $value);\n```\n\n### Delete Settings\nUpdate an existing setting:\n\n```php\ndeleteSettings(string $key);\n```\n\n## Contribution Guide\nPlease follow our [Contribution Guide](https://github.com/anisAronno/multipurpose-admin-panel-boilerplate/blob/develop/CONTRIBUTING.md) if you'd like to contribute to this package.\n\n## License\nThis package is open-source software licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanisaronno%2Flaravel-settings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanisaronno%2Flaravel-settings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanisaronno%2Flaravel-settings/lists"}