{"id":37364581,"url":"https://github.com/sadekd/nova-opening-hours-field","last_synced_at":"2026-01-16T04:49:49.075Z","repository":{"id":34296782,"uuid":"172861034","full_name":"sadekd/nova-opening-hours-field","owner":"sadekd","description":"Laravel Nova custom field for https://github.com/spatie/opening-hours","archived":false,"fork":false,"pushed_at":"2025-01-20T10:20:36.000Z","size":755,"stargazers_count":38,"open_issues_count":8,"forks_count":32,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-27T16:30:07.818Z","etag":null,"topics":["field","laravel","nova","opening-hours"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/sadekd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2019-02-27T06:56:53.000Z","updated_at":"2025-07-09T15:57:44.000Z","dependencies_parsed_at":"2024-06-20T00:07:08.197Z","dependency_job_id":"9651c58c-76e6-4180-9bf1-366e00586ae9","html_url":"https://github.com/sadekd/nova-opening-hours-field","commit_stats":{"total_commits":34,"total_committers":11,"mean_commits":3.090909090909091,"dds":0.5882352941176471,"last_synced_commit":"e178ee3443b8e7928d0c238af2347e4ee112368f"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/sadekd/nova-opening-hours-field","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadekd%2Fnova-opening-hours-field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadekd%2Fnova-opening-hours-field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadekd%2Fnova-opening-hours-field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadekd%2Fnova-opening-hours-field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sadekd","download_url":"https://codeload.github.com/sadekd/nova-opening-hours-field/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadekd%2Fnova-opening-hours-field/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":["field","laravel","nova","opening-hours"],"created_at":"2026-01-16T04:49:48.535Z","updated_at":"2026-01-16T04:49:49.071Z","avatar_url":"https://github.com/sadekd.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nova Opening Hours Field\n\n[![Latest Stable Version](https://poser.pugx.org/sadekd/nova-opening-hours-field/v)](https://packagist.org/packages/sadekd/nova-opening-hours-field)\n[![Total Downloads](https://poser.pugx.org/sadekd/nova-opening-hours-field/downloads)](https://packagist.org/packages/sadekd/nova-opening-hours-field)\n[![License](https://poser.pugx.org/sadekd/nova-opening-hours-field/license)](https://packagist.org/packages/sadekd/nova-opening-hours-field)\n[![PHP Version Require](https://poser.pugx.org/sadekd/nova-opening-hours-field/require/php)](https://packagist.org/packages/sadekd/nova-opening-hours-field)\n\n[Laravel](https://laravel.com) [Nova](https://nova.laravel.com) custom field for [Spatie Opening Hours](https://github.com/spatie/opening-hours)\n\n### Index\n\n![Screenshot Index](screenshot-index.png)\n\n### Form\n\n![Screenshot Form](screenshot-form.png)\n\n### Detail\n\n![Screenshot Detail](screenshot-detail.png)\n\n## Installation\n\nYou can install the package in to a [Laravel](https://laravel.com) app that uses [Nova](https://nova.laravel.com) via composer:\n\n```bash\ncomposer require sadekd/nova-opening-hours-field\n```\n\n## Usage\n\nLaravel Migration\n\n```php\n$table-\u003ejson('opening_hours');  // can be -\u003enullable()\n```\n\nLaravel Model\n\n```php\nprotected $casts = [\n    'opening_hours' =\u003e 'array',\n];\n```\n\nNova Resource\n\n```php\nNovaOpeningHoursField::make(__('Opening Hours'), 'opening_hours'),\n// -\u003eallowExceptions(FALSE)    // TRUE by default\n// -\u003eallowOverflowMidnight(TRUE)  // FALSE by default\n// -\u003euseTextInputs(TRUE)  // FALSE by default\n```\n\n## Known issues\n\n- Lazy validation on time field - losing focus when live(help needed)\n- Editing date in exceptions causes row jumping - key from date(help needed)\n- Browser time input does not support 24:00\n- Browser date input does not support recurring format\n\n## TODO\n\n- [x] Explode interval input =\u003e time fields\n- [x] Validation\n- [x] Localization\n- [x] Exceptions\n- [ ] Tests\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadekd%2Fnova-opening-hours-field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadekd%2Fnova-opening-hours-field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadekd%2Fnova-opening-hours-field/lists"}