PHPackages                             mlsolutions/nova-opening-hours-field - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mlsolutions/nova-opening-hours-field

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mlsolutions/nova-opening-hours-field
====================================

Laravel Nova custom field for Spatie Opening Hours

1.0.0(7mo ago)02MITVuePHP ^8.1

Since Sep 16Pushed 7mo agoCompare

[ Source](https://github.com/ml-solutions-ltda/nova-opening-hours-field)[ Packagist](https://packagist.org/packages/mlsolutions/nova-opening-hours-field)[ RSS](/packages/mlsolutions-nova-opening-hours-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Nova Opening Hours Field
========================

[](#nova-opening-hours-field)

[![Latest Stable Version](https://camo.githubusercontent.com/12d4a987eb04738dadc1b588930d3c2ca90ac1ae0bb0306ada8a6e6e3b96c2c3/68747470733a2f2f706f7365722e707567782e6f72672f6d6c2d736f6c7574696f6e732d6c7464612f6e6f76612d6f70656e696e672d686f7572732d6669656c642f76)](https://packagist.org/packages/ml-solutions-ltda/nova-opening-hours-field)[![Total Downloads](https://camo.githubusercontent.com/e6aec0ff4b1cbaca294c91e357abc516cda40c1d9e52793c10be2a68b62c8250/68747470733a2f2f706f7365722e707567782e6f72672f6d6c2d736f6c7574696f6e732d6c7464612f6e6f76612d6f70656e696e672d686f7572732d6669656c642f646f776e6c6f616473)](https://packagist.org/packages/ml-solutions-ltda/nova-opening-hours-field)[![License](https://camo.githubusercontent.com/171d2271838e75207ccb27ae35d7ee9966425199cc0dff640b668ca6baf883ad/68747470733a2f2f706f7365722e707567782e6f72672f6d6c2d736f6c7574696f6e732d6c7464612f6e6f76612d6f70656e696e672d686f7572732d6669656c642f6c6963656e7365)](https://packagist.org/packages/ml-solutions-ltda/nova-opening-hours-field)[![PHP Version Require](https://camo.githubusercontent.com/d10bafaeaba7873814f7c12e2a8c8e77bd8d4d0c8beb3383c9b017ad426cee8d/68747470733a2f2f706f7365722e707567782e6f72672f6d6c2d736f6c7574696f6e732d6c7464612f6e6f76612d6f70656e696e672d686f7572732d6669656c642f726571756972652f706870)](https://packagist.org/packages/ml-solutions-ltda/nova-opening-hours-field)

[Laravel](https://laravel.com) [Nova](https://nova.laravel.com) custom field for [Spatie Opening Hours](https://github.com/spatie/opening-hours)

### Index

[](#index)

[![Screenshot Index](screenshot-index.png)](screenshot-index.png)

### Form

[](#form)

[![Screenshot Form](screenshot-form.png)](screenshot-form.png)

### Detail

[](#detail)

[![Screenshot Detail](screenshot-detail.png)](screenshot-detail.png)

Installation
------------

[](#installation)

You can install the package in to a [Laravel](https://laravel.com) app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require mlsolutions/nova-opening-hours-field
```

Usage
-----

[](#usage)

Laravel Migration

```
$table->json('opening_hours');  // can be ->nullable()
```

Laravel Model

```
protected $casts = [
    'opening_hours' => 'array',
];
```

Nova Resource

```
NovaOpeningHoursField::make(__('Opening Hours'), 'opening_hours'),
// ->allowExceptions(FALSE)    // TRUE by default
// ->allowOverflowMidnight(TRUE)  // FALSE by default
// ->useTextInputs(TRUE)  // FALSE by default
```

Known issues
------------

[](#known-issues)

- Lazy validation on time field - losing focus when live(help needed)
- Editing date in exceptions causes row jumping - key from date(help needed)
- Browser time input does not support 24:00
- Browser date input does not support recurring format

TODO
----

[](#todo)

- Explode interval input =&gt; time fields
- Validation
- Localization
- Exceptions
- Tests

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance66

Regular maintenance activity

Popularity2

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

235d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b895f8c44bd74d8ad19241803acb2f5763db593c608314de8ec07700e79796eb?d=identicon)[luissobrinho](/maintainers/luissobrinho)

---

Top Contributors

[![sadekd](https://avatars.githubusercontent.com/u/6051891?v=4)](https://github.com/sadekd "sadekd (32 commits)")[![dmason30](https://avatars.githubusercontent.com/u/20278756?v=4)](https://github.com/dmason30 "dmason30 (10 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (6 commits)")[![EslanaRegina](https://avatars.githubusercontent.com/u/134294881?v=4)](https://github.com/EslanaRegina "EslanaRegina (3 commits)")[![batFormat](https://avatars.githubusercontent.com/u/13119245?v=4)](https://github.com/batFormat "batFormat (3 commits)")[![Nembie](https://avatars.githubusercontent.com/u/47114030?v=4)](https://github.com/Nembie "Nembie (2 commits)")[![WASDLauterbach](https://avatars.githubusercontent.com/u/53601701?v=4)](https://github.com/WASDLauterbach "WASDLauterbach (1 commits)")[![eimantaaas](https://avatars.githubusercontent.com/u/3778741?v=4)](https://github.com/eimantaaas "eimantaaas (1 commits)")[![maherelgamil](https://avatars.githubusercontent.com/u/6294478?v=4)](https://github.com/maherelgamil "maherelgamil (1 commits)")[![m-a-k-o](https://avatars.githubusercontent.com/u/6873535?v=4)](https://github.com/m-a-k-o "m-a-k-o (1 commits)")[![NoahNxT](https://avatars.githubusercontent.com/u/58152024?v=4)](https://github.com/NoahNxT "NoahNxT (1 commits)")[![tschigo](https://avatars.githubusercontent.com/u/344100?v=4)](https://github.com/tschigo "tschigo (1 commits)")

---

Tags

laravelnovaopening-hours

### Embed Badge

![Health badge](/badges/mlsolutions-nova-opening-hours-field/health.svg)

```
[![Health](https://phpackages.com/badges/mlsolutions-nova-opening-hours-field/health.svg)](https://phpackages.com/packages/mlsolutions-nova-opening-hours-field)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
