LaravelPackages.net
Acme Inc.
Toggle sidebar
warksit/time

A Laravel Nova time field.

7
1
0.0.1
About warksit/time

warksit/time is a Laravel package for a laravel nova time field.. It currently has 1 GitHub stars and 7 downloads on Packagist (latest version 0.0.1). Install it with composer require warksit/time. Discover more Laravel packages by warksit or browse all Laravel packages to compare alternatives.

Last updated

Laravel Nova Time Field

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.

Star History Chart