{"id":34689502,"url":"https://github.com/mooxphp/draft","last_synced_at":"2026-02-20T16:01:03.712Z","repository":{"id":281479870,"uuid":"944684624","full_name":"mooxphp/draft","owner":"mooxphp","description":"[READ-ONLY] Draftable Entity for Laravel and Filament","archived":false,"fork":false,"pushed_at":"2025-09-10T11:34:42.000Z","size":470,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-22T02:03:56.402Z","etag":null,"topics":["builder","entity","filament","laravel","resource"],"latest_commit_sha":null,"homepage":"https://www.moox.org","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/mooxphp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["mooxphp"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2025-03-07T19:33:13.000Z","updated_at":"2025-09-10T11:34:45.000Z","dependencies_parsed_at":"2025-09-10T13:20:39.664Z","dependency_job_id":"396a2f0b-a392-40f3-a767-824a73d20c79","html_url":"https://github.com/mooxphp/draft","commit_stats":null,"previous_names":["mooxphp/draft"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mooxphp/draft","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooxphp","download_url":"https://codeload.github.com/mooxphp/draft/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooxphp%2Fdraft/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29656589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["builder","entity","filament","laravel","resource"],"created_at":"2025-12-24T21:57:21.811Z","updated_at":"2026-02-20T16:01:03.696Z","avatar_url":"https://github.com/mooxphp.png","language":"PHP","readme":"![Moox Draft](https://github.com/mooxphp/moox/raw/main/art/banner/draft.jpg)\n\n# Moox Draft\n\nDraft is a publishable Moox Entity that can be used to create and manage Pages, Posts, etc.\n\n## Features\n\n\u003c!--features--\u003e\n\n-   Publish (or schedule)\n-   Unpublish (or schedule)\n-   Soft Delete\n-   Supports Taxonomies\n-   Supports Relations\n-   Supports Modules\n-   Title with Slug fields\n-   Active field (Toggle)\n-   Description field (Editor)\n-   Content field (Markdown)\n-   Data field (Key-Value)\n-   Image field (Media)\n-   Author field (User)\n-   Type field (Select)\n-   Due field (DateTime)\n-   Color field (Color)\n-   UUID field (UUID)\n-   ULID field (ULID)\n\n\u003c!--/features--\u003e\n\n## Requirements\n\nSee [Requirements](https://github.com/mooxphp/moox/blob/main/docs/Requirements.md).\n\n## Installation\n\n```bash\ncomposer require moox/draft\nphp artisan moox:install\n```\n\nCurious what the install command does? See [Installation](https://github.com/mooxphp/moox/blob/main/docs/Installation.md).\n\n## Screenshot\n\n![Moox Draft](https://github.com/mooxphp/moox/raw/main/art/screenshots/draft.jpg)\n\n## Get Started\n\nSee [Get Started](docs/GetStarted.md).\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Roadmap\n\nPlease see [ROADMAP](ROADMAP.md) for more information on what is planned for this package.\n\n## Security\n\nPlease review [our security policy](https://github.com/mooxphp/moox/security/policy) on how to report security vulnerabilities.\n\n## Credits\n\nThanks to so many [people for their contributions](https://github.com/mooxphp/moox#contributors) to this package.\n\n## License\n\nThe MIT License (MIT). Please see [our license and copyright information](https://github.com/mooxphp/moox/blob/main/LICENSE.md) for more information.\n\n\n## The Draft Model \nThe Draft model comes with several powerful features and capabilities:\n\n### Attributes\n\n#### Base Fields\n- `is_active` (boolean) - Activation status\n- `data` (json) - Flexible JSON data storage\n- `type` - Content type (Post/Page)\n- `status` - Publication status (draft/waiting/private/scheduled/published)\n- `color` - Custom color coding\n- `due_at` (datetime) - Due date\n- `uuid` - Universally Unique Identifier\n- `ulid` - Universally Unique Lexicographically Sortable Identifier\n\n#### Translated Fields\n- `title` - Content title\n- `slug` - URL-friendly identifier\n- `description` - Brief description\n- `content` - Main content\n- `author_id` - Content author reference\n- `to_publish_at` - Scheduled publish date\n- `published_at` - Actual publish date\n- `to_unpublish_at` - Scheduled unpublish date\n- `unpublished_at` - Actual unpublish date\n\n### Media Handling\n- Supports media attachments via Spatie Media Library\n- Automatic image conversions for previews\n- Media relationship through usables\n\n### Publishing Workflow\n- Scheduled publishing support\n- Publication status tracking\n- Unpublishing capability\n- Audit trail for publishing actions\n\n### Methods\n\n#### Publishing Related\n- `isScheduledForPublishing()` - Check if content is scheduled\n- `isPublished()` - Check publication status\n- `isScheduledForUnpublishing()` - Check unpublishing schedule\n- `isUnpublished()` - Check if unpublished\n- `handleSchedulingDates()` - Manage scheduling dates\n- `handlePublishingDates()` - Handle publication dates\n\n#### Query Scopes\n- `scopeScheduledForPublishing()`\n- `scopePublished()`\n- `scopeScheduledForUnpublishing()`\n- `scopeUnpublished()`\n- `scopeRestored()`\n\n#### Relationships\n- `author()` - Author relationship\n- `publishedBy()` - Publishing actor\n- `updatedBy()` - Update actor\n- `createdBy()` - Creation actor\n- `unpublishedBy()` - Unpublishing actor\n- `deletedBy()` - Deletion actor\n- `restoredBy()` - Restoration actor\n\n### Features\n- Soft deletes support\n- Multi-language support\n- Taxonomy integration\n- Automatic UUID/ULID generation\n- Media library integration\n- Publishing workflow management\n- Audit trail for all major actions\n","funding_links":["https://github.com/sponsors/mooxphp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooxphp%2Fdraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooxphp%2Fdraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooxphp%2Fdraft/lists"}