{"id":20949881,"url":"https://github.com/visual-ideas/laravel-seoable","last_synced_at":"2025-08-18T01:37:32.816Z","repository":{"id":78229857,"uuid":"593219716","full_name":"visual-ideas/laravel-seoable","owner":"visual-ideas","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-23T15:06:01.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T18:49:51.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/visual-ideas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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-01-25T14:14:55.000Z","updated_at":"2023-01-25T14:15:55.000Z","dependencies_parsed_at":"2023-02-26T06:15:13.832Z","dependency_job_id":null,"html_url":"https://github.com/visual-ideas/laravel-seoable","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"b473b4a7253f51c628f013f1b618dd5d739d2884"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/visual-ideas/laravel-seoable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-ideas%2Flaravel-seoable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-ideas%2Flaravel-seoable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-ideas%2Flaravel-seoable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-ideas%2Flaravel-seoable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visual-ideas","download_url":"https://codeload.github.com/visual-ideas/laravel-seoable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visual-ideas%2Flaravel-seoable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270932579,"owners_count":24670241,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-19T00:44:24.854Z","updated_at":"2025-08-18T01:37:32.796Z","avatar_url":"https://github.com/visual-ideas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easy laravel cached settings\n\nEasy laravel cached settings (stored in MYSQL) package with MoonShine Laravel Admin GUI\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/visual-ideas/laravel-seoable.svg?style=flat-square)](https://packagist.org/packages/visual-ideas/laravel-seoable)\n[![Total Downloads](https://img.shields.io/packagist/dt/visual-ideas/laravel-seoable.svg?style=flat-square)](https://packagist.org/packages/visual-ideas/laravel-seoable)\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require visual-ideas/laravel-seoable\n```\n\nYou must run the migrations with:\n\n```bash\nphp artisan migrate\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --provider=\"VI\\LaravelSeoable\\LaravelSeoableProvider\" --tag=\"config\"\n```\n\nThis is the contents of the published config file:\n\n```php\nreturn [\n    'cache_key' =\u003e env('LSS_CACHE_KEY','laravel_site_settings_data'),\n];\n```\n\n## Usage\n\nYou can use this package as default laravel config() function!\n\n```php\nfunction settings($key = null, $default = null)\n{\n    if (is_null($key)) {\n        return app('Settings')-\u003eall();\n    }\n\n    if (is_array($key)) {\n        return app('Settings')-\u003eset($key);\n    }\n\n    return app('Settings')-\u003eget($key, $default);\n}\n```\n\nor Blade directive @settings\n\n```php\n@settings('group.setting')\n```\nFor PHPStorm you can set this blade directive with [This instruction](https://www.jetbrains.com/help/phpstorm/blade-page.html)\n\n\nor as part of native Laravel config()\n\n```php\n@config('settings.group.setting')\n```\n\n\u003cb\u003eNot working in console!\u003c/b\u003e\n\n## Update settings\n\nYou can use models VI\\LaravelSeoable\\Models\\SettingGroup and VI\\LaravelSeoable\\Models\\Setting\n\nor set settings values with the settings() function:\n\n```php\nsettings(['group.setting' =\u003e 'Value']);\nsettings(['setting' =\u003e 'Value']);\n```\n\n## Usage with MoonShine Laravel Admin\n\nPlease see [MoonShine](https://moonshine.cutcode.ru/)\n\nYou can publish two [MoonShine Resources](https://moonshine.cutcode.ru/resources-index) with command:\n\n```bash\nphp artisan vendor:publish --provider=\"VI\\LaravelSeoable\\LaravelSeoableProvider\" --tag=\"moonshine\"\n```\n\nand use them in your MoonShine admin panel, like this:\n\n```php\nMenuGroup::make('Settings', [\n    MenuItem::make('Settings', SettingResource::class)-\u003eicon('app'),\n    MenuItem::make('Settings groups', SettingGroupResource::class)-\u003eicon('app'),\n])-\u003eicon('app'),\n```\n\n## Seeding settings\n\nI recommend saving the settings in the seeders using the [orangehill/iseed](https://github.com/orangehill/iseed) package:\n\n```bash\nphp artisan iseed setting_groups,settings\n```\n\nBut you can use seeder or migration to set your settings\n\n```php\nsettings([\n    ['group.setting1' =\u003e 'Value1'],\n    ['group.setting2' =\u003e 'Value2'],\n    ['group.setting3' =\u003e 'Value3'],\n    ['setting1' =\u003e 'Value4'],\n    ['setting2' =\u003e 'Value5'],\n    ['setting3' =\u003e 'Value6'],\n    ['setting4' =\u003e 'Value7'],\n    ['setting5' =\u003e 'Value8']\n]);\n```\n\n## Credits\n\n- [Alex](https://github.com/alexvenga)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisual-ideas%2Flaravel-seoable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisual-ideas%2Flaravel-seoable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisual-ideas%2Flaravel-seoable/lists"}