mschop / laravel-nova-time-field

Basic HTML5 time field for Laravel Nova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Nova Time Field

This package adds a basic HTML5 time field to Laravel Nova.

Installation

Use composer to install the package.

composer require michielfb/laravel-nova-time-field

Usage

The display format of the Time field can be customized using the format method. The format must be a format supported by Moment.js.

<?php 
use Michielfb\Time\Time;

Time::make('Time')->format('HH:mm');

Steps

The step attribute can be configured by using the withSteps method.

<?php 
use Michielfb\Time\Time;

Time::make('Time')->withSteps(1);

The withSeconds method sets a step of 1 which allows users to enter seconds.

<?php 
use Michielfb\Time\Time;

Time::make('Time')->withSeconds();

About

Basic HTML5 time field for Laravel Nova


Languages

Language:Vue 54.9%Language:PHP 35.6%Language:JavaScript 9.1%Language:SCSS 0.4%