PHPackages                             laraning/nova-time-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. laraning/nova-time-field

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

laraning/nova-time-field
========================

A Laravel Nova field.

v1.2(5y ago)61728.7k—1.8%27[3 issues](https://github.com/laraning/nova-time-field/issues)[2 PRs](https://github.com/laraning/nova-time-field/pulls)3MITVuePHP &gt;=7.1.0

Since Sep 27Pushed 4y ago2 watchersCompare

[ Source](https://github.com/laraning/nova-time-field)[ Packagist](https://packagist.org/packages/laraning/nova-time-field)[ RSS](/packages/laraning-nova-time-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (17)Used By (3)

A time field for Laravel Nova applications
==========================================

[](#a-time-field-for-laravel-nova-applications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6b4dc20edfe21e49b7a5e8e98f3ce660098632fb3702bafef8800cd17e0f7341/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616e696e672f6e6f76612d74696d652d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraning/nova-time-field)[![StyleCI](https://camo.githubusercontent.com/8606c91f7db404a7749c9f0679dd9cfe8c71b3ddeea70e7db87fe8672f4a11f9/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135303530313639302f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/150501690)[![Total Downloads](https://camo.githubusercontent.com/b4708854f6ff0b3047ee414839eda69d5de56c41c1c1a49b2d45c37dff1532cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616e696e672f6e6f76612d74696d652d6669656c642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laraning/nova-time-field)

This package contains a Nova field to allow you to store time values. Under the hood it uses the [flatpickr](https://github.com/flatpickr/flatpickr) default Laravel Nova Calendar library.

[![screenshot of the nova time field](https://camo.githubusercontent.com/46923d3105643d83eeefdd954b3eef8c260bebbdb48e3e10252a20eeb0f60c95/68747470733a2f2f6173736574732e776179676f752e636f6d2f6e6f76612d74696d652d6669656c642e6a7067)](https://camo.githubusercontent.com/46923d3105643d83eeefdd954b3eef8c260bebbdb48e3e10252a20eeb0f60c95/68747470733a2f2f6173736574732e776179676f752e636f6d2f6e6f76612d74696d652d6669656c642e6a7067)

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

[](#installation)

You can install this package in your [Laravel Nova](https://nova.laravel.com) app via composer:

```
composer require laraning/nova-time-field
```

Usage
-----

[](#usage)

You can use the `Laraning\NovaTimeField\TimeField` namespace in your Nova resource:

```
namespace App\Nova;

use Laraning\NovaTimeField\TimeField;

class BlogPost extends Resource
{
    // ...

    public function fields(Request $request)
    {
        return [
            // ...

            TimeField::make('Post start Time'),
            // ...
        ];
    }
}
```

By default the time component uses a 24 hour format. Still you can make it in 12h format like:

```
TimeField::make('Post start Time')->withTwelveHourTime(),
```

You can also change the default 5 minute increments to another number:

```
TimeField::make('Post start Time')->minuteIncrement(1),
```

You can make sure that all times entered are converted back to your base app timezone (set in `config/app.php`) by calling the `withTimezoneAdjustments()` method on your field.

```
TimeField::make('Post start Time')->withTimezoneAdjustments(),
```

An example of this would be when your app is set to GMT but your user is in BST (GMT+1). The user would still be able to interact with the timefield in their local time, but the time would be saved into the database in GMT.

E.G. The user may select 14:00. They will always see the time as 14:00, but the database will save it as 13:00 as it makes the BST -&gt; GMT adjustments behind the scenes.

As well as handling switching the time to and from your base app timezone, you may also pass in a timezone offset (in minutes), such as the one returned by `moment().utcOffset()`. This will then adjust the time to display with the adjusted timezone rather than the users timezone. This is useful if you're saving the time in UTC along with the offset of the browser that was used to submit it.

Here you can see how we'd move UTC to BST by passing an offset of 60

```
TimeField::make('Post start Time')->withTimezoneAdjustments(60),
```

Current development status
--------------------------

[](#current-development-status)

- Make release 0.1.0.
- Add minimal test scenarios.
- Add timezone support.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~52 days

Recently: every ~73 days

Total

16

Last Release

1996d ago

Major Versions

v0.3.0 → v1.0.02020-07-18

### Community

Maintainers

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

---

Top Contributors

[![brunocfalcao](https://avatars.githubusercontent.com/u/34269950?v=4)](https://github.com/brunocfalcao "brunocfalcao (45 commits)")[![laraning](https://avatars.githubusercontent.com/u/35408392?v=4)](https://github.com/laraning "laraning (39 commits)")[![darylldoyle](https://avatars.githubusercontent.com/u/968731?v=4)](https://github.com/darylldoyle "darylldoyle (10 commits)")[![tylernathanreed](https://avatars.githubusercontent.com/u/6486381?v=4)](https://github.com/tylernathanreed "tylernathanreed (10 commits)")[![joonas1234](https://avatars.githubusercontent.com/u/35030215?v=4)](https://github.com/joonas1234 "joonas1234 (3 commits)")[![brandonferens](https://avatars.githubusercontent.com/u/1819546?v=4)](https://github.com/brandonferens "brandonferens (2 commits)")[![zareismail](https://avatars.githubusercontent.com/u/23401061?v=4)](https://github.com/zareismail "zareismail (1 commits)")[![chrispelzer](https://avatars.githubusercontent.com/u/636531?v=4)](https://github.com/chrispelzer "chrispelzer (1 commits)")[![digitalunityca](https://avatars.githubusercontent.com/u/38138816?v=4)](https://github.com/digitalunityca "digitalunityca (1 commits)")[![ghulamappelit](https://avatars.githubusercontent.com/u/109726808?v=4)](https://github.com/ghulamappelit "ghulamappelit (1 commits)")[![TiagoSilvaPereira](https://avatars.githubusercontent.com/u/11933789?v=4)](https://github.com/TiagoSilvaPereira "TiagoSilvaPereira (1 commits)")[![AlexanderBich](https://avatars.githubusercontent.com/u/25570975?v=4)](https://github.com/AlexanderBich "AlexanderBich (1 commits)")

---

Tags

fieldlaravelnovatimelaravelnova

### Embed Badge

![Health badge](/badges/laraning-nova-time-field/health.svg)

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

###  Alternatives

[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)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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