oneduo/nova-time-field

A Laravel Nova time field

v1.0.0 2022-11-18 17:20 UTC

This package is auto-updated.

Last update: 2024-10-18 21:25:31 UTC


README

Status License PHP Latest Version on Packagist Downloads Run tests

Table of Contents

Getting Started

Prerequisites

This package requires the following :

  • PHP 8.0 or higher
  • Laravel Nova 4.0 or higher

Installing

To get started, you will need to install the following dependencies :

composer require oneduo/nova-time-field

That's it, you're ready to go!

Usage

You may use the Time in your Nova resource :

// app/Nova/User.php

use Oneduo\NovaTimeField\Time;

class User extends Resource
{
    // ...

    public function fields(NovaRequest $request): array
    {
        return [
            // ... any other fields
            Time::make(__('time'), 'time'),
        ];
    }
}

Authors

See also the list of contributors who participated in this project.

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

Please review our security policy on how to report security vulnerabilities.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.