{"id":18370012,"url":"https://github.com/statamic/eloquent-entries-example","last_synced_at":"2025-04-06T18:32:46.854Z","repository":{"id":146133531,"uuid":"294133858","full_name":"statamic/eloquent-entries-example","owner":"statamic","description":"An example package that allows you to store Statamic entries in a database.","archived":false,"fork":false,"pushed_at":"2023-04-20T14:01:44.000Z","size":15,"stargazers_count":6,"open_issues_count":2,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T04:41:25.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statamic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-09T14:15:59.000Z","updated_at":"2024-01-04T02:01:52.000Z","dependencies_parsed_at":"2023-04-12T03:04:30.409Z","dependency_job_id":null,"html_url":"https://github.com/statamic/eloquent-entries-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Feloquent-entries-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Feloquent-entries-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Feloquent-entries-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Feloquent-entries-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic","download_url":"https://codeload.github.com/statamic/eloquent-entries-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247531428,"owners_count":20953962,"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":[],"created_at":"2024-11-05T23:35:13.294Z","updated_at":"2025-04-06T18:32:46.848Z","avatar_url":"https://github.com/statamic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Statamic Eloquent Entries Example\n\n\u003e ⚠️ This repository is intended to be a learning tool, and not used in production.\n\n[This is built in a walkthrough on the Statamic Knowledge Base](https://statamic.dev/knowledge-base/storing-entries-in-a-database).\n\nA package intended for real usage exists at [statamic/eloquent-driver](https://github.com/statamic/eloquent-driver).\n\n## Installation\n\n- Clone or download this repository.\n- Add a repository in your project's `composer.json` pointing to where you cloned it:\n    ``` json\n    \"repositories\": [\n        {\n            \"type\": \"path\",\n            \"url\": \"path/to/repo\"\n        }\n    ]\n    ```\n- Require it with `composer require statamic/eloquent-entries-example`\n- Run migrations with `php artisan migrate`\n\n## Schema\n\nMost of the entries' blueprint fields are in a catch-all JSON `data` column. This allows us to not need to update the DB schema when you change the blueprint.\n\nThe `id` and `origin_id` columns are strings, to make migrating from files easier. If they were incrementing integers, you'd need to update anywhere the IDs\nare referenced. Relationship field values, collections' mount values, structures, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Feloquent-entries-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic%2Feloquent-entries-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Feloquent-entries-example/lists"}