warksit/time

A Laravel Nova time field.

Maintainers

Package info

github.com/warksit/time

Language:Vue

pkg:composer/warksit/time

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.0.1 2019-02-28 02:12 UTC

This package is auto-updated.

Last update: 2026-03-28 18:03:22 UTC


README

This package adds a basic HTML5 time field to Laravel Nova with the ability to include seconds.

Installation

Use composer to install the package.

composer require warksit/Time

Usage

To include seconds call includeSeconds() when you add the field.

namespace App\Nova;

use Warksit\Time\Time;

class BlogPost extends Resource
{
    // ...

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

            Time::make('Post start Time')->includeSeconds(),
            // ...
        ];
    }
}

If you would like finer grained control you can call step($value) with the required value.