{"id":33978769,"url":"https://github.com/mlk9/setting-laravel","last_synced_at":"2026-04-24T13:31:27.909Z","repository":{"id":46887357,"uuid":"405530524","full_name":"mlk9/setting-laravel","owner":"mlk9","description":"Setting (encryption) for Laravel","archived":false,"fork":false,"pushed_at":"2024-01-09T09:26:16.000Z","size":112,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T12:34:36.279Z","etag":null,"topics":["laravel","laravel-package","setting"],"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/mlk9.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-09-12T02:48:18.000Z","updated_at":"2024-03-03T03:14:31.000Z","dependencies_parsed_at":"2024-01-08T06:55:14.631Z","dependency_job_id":"a8cac984-f900-41b2-abd5-520d1809f360","html_url":"https://github.com/mlk9/setting-laravel","commit_stats":{"total_commits":40,"total_committers":1,"mean_commits":40.0,"dds":0.0,"last_synced_commit":"d026b0b4f25e9af4fcffc6f84d7720df94623d0b"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/mlk9/setting-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlk9%2Fsetting-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlk9%2Fsetting-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlk9%2Fsetting-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlk9%2Fsetting-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlk9","download_url":"https://codeload.github.com/mlk9/setting-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlk9%2Fsetting-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32225730,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["laravel","laravel-package","setting"],"created_at":"2025-12-13T02:57:51.547Z","updated_at":"2026-04-24T13:31:27.891Z","avatar_url":"https://github.com/mlk9.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Setting Laravel\nSetting (encryption) for Laravel saving database\u003cbr\u003e\nEncryption docs https://laravel.com/docs/encryption\u003cbr\u003e\nHash Salts Method\n## Requirement\n- Laravel 6+\n- PHP +8.2\n## Installation\n- via composer\n```sh\ncomposer require mlk9/setting-laravel\n```\n- vendor publish\n```sh\nphp artisan vendor:publish --tag=setting-laravel\n```\n- migrate table\n```sh\nphp artisan migrate\n```\n## Usage\nset data\n```sh\nSetting::set('KEY_NAME','VALUE'); \n//or\nSetting::set([\n'KEY_NAME' =\u003e 'VALUE',\n'KEY_NAME' =\u003e 'VALUE'\n]); \n```\nget data\n```sh\nSetting::get('KEY_NAME','DEFAULT_VALUE',$salts = []); \n```\nkey exist\n```sh\nSetting::exists('KEY_NAME'); //output : bool\n```\ndestroy data\n```sh\nSetting::destroy('KEY_NAME'); \n```\ndestroy all data\n```sh\nSetting::destroyAll(); \n```\nget  all data\n```sh\nSetting::all(); \n```\nrefresh salts\n```sh\nSetting::refreshSalts();\n```\nwhen you need change salts, you can use this method for replace old salts to new configure package\n```sh\nSetting::changeOldSalts(array $oldSalts);\n```\n### config using\n#### Method 1 (recommended)\nreplace all config data with setting data\n```sh\n//must be same key name\nSetting::set(['app.name' =\u003e 'Maleki']); \n//uses at \\app\\Providers\\AppServiceProvider.php in boot\nSetting::replaceAllConfigs();\n```\n#### Method 2 (customize)\nreplace custom config data with setting data\n```sh\n//in page save\nSetting::set(['seo.site.name' =\u003e 'Maleki']); \n//uses at \\app\\Providers\\AppServiceProvider.php in boot\nSetting::replaceConfigs(['app.name' =\u003e 'seo.site.name']);\n//for test\nconfig('app.name') // return : Maleki\n```\n#### Method 3 (not recommended)\n`app\\Providers\\AppServiceProvider.php`\n```sh\npublic function boot()\n   {\n    Config::set('services.example.exam1',Setting::get('example.exam'));\n   }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlk9%2Fsetting-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlk9%2Fsetting-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlk9%2Fsetting-laravel/lists"}