{"id":25453255,"url":"https://github.com/bubalubs/gravity","last_synced_at":"2025-11-02T07:30:22.555Z","repository":{"id":36257058,"uuid":"210882103","full_name":"Bubalubs/gravity","owner":"Bubalubs","description":"Laravel package that sets up a light flexible CMS with an admin control panel","archived":false,"fork":false,"pushed_at":"2024-09-03T23:24:06.000Z","size":2791,"stargazers_count":5,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T19:07:45.164Z","etag":null,"topics":["admin","admin-dashboard","cms","laravel","laravel-package"],"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/Bubalubs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-25T15:42:34.000Z","updated_at":"2024-09-03T23:24:09.000Z","dependencies_parsed_at":"2023-01-17T00:15:09.757Z","dependency_job_id":null,"html_url":"https://github.com/Bubalubs/gravity","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bubalubs%2Fgravity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bubalubs%2Fgravity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bubalubs%2Fgravity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bubalubs%2Fgravity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bubalubs","download_url":"https://codeload.github.com/Bubalubs/gravity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239384731,"owners_count":19629509,"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":["admin","admin-dashboard","cms","laravel","laravel-package"],"created_at":"2025-02-17T23:54:23.330Z","updated_at":"2025-11-02T07:30:22.264Z","avatar_url":"https://github.com/Bubalubs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/bubalubs/gravity/v/stable)](https://packagist.org/packages/bubalubs/gravity)\n[![License](https://poser.pugx.org/bubalubs/gravity/license)](https://packagist.org/packages/bubalubs/gravity)\n\nGravity is a Laravel package that sets up a light flexible CMS with an admin control panel\n\n![screenshot](/screenshot1.png)\n\n# Installation\n\nInstall using composer\n\n`composer require bubalubs/gravity`\n\nCreate database tables by running migrations\n\n`php artisan migrate`\n\nPublish CSS/JS files for admin control panel\n\n`php artisan vendor:publish --tag=public`\n\nAdd the HasRoles Trait to your User model\n\n```\nuse Spatie\\Permission\\Traits\\HasRoles;\n\nclass User extends Authenticatable\n{\n    use Notifiable, HasRoles;\n\n    ...\n```\n\nTo get going with basic auth, you can use [Laravel Breeze](https://laravel.com/docs/10.x/starter-kits#laravel-breeze)\n\n# Usage\n\nUsing blade templating, you can output the CMS values.\n\nTo ouput global content use `{{ $globalContent['field-name']}}`\n\nTo show page content use `{{ $content['field-name'] }}`\n\n# Entities (Models)\n\nEntities allow you to work with a custom Laravel model and adds CRUD options to the admin.\n\nTo work with images on an entity your model must implement the following interface and trait:\n\n```\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Spatie\\MediaLibrary\\HasMedia\\HasMedia;\nuse Spatie\\MediaLibrary\\HasMedia\\HasMediaTrait;\n\nclass YourModel extends Model implements HasMedia\n{\n    use HasMediaTrait;\n    \n    ...\n```\n\n# Customizing Views\n\nPublish view files to your laravel view directory then edit them to make changes\n\n`php artisan vendor:publish --provider=Bubalubs\\Gravity\\GravityServiceProvider`\n\n# Updating\n\nUpdate to the latest views (This will overwrite any changes you have made)\n\n`php artisan vendor:publish --provider=Bubalubs\\Gravity\\GravityServiceProvider --tag=public --force`\n\n# Thanks\n\nThanks to [spatie](https://spatie.be/open-source) for their awesome libraries that this package relies on for permissions and media library!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubalubs%2Fgravity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbubalubs%2Fgravity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbubalubs%2Fgravity/lists"}