Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oneduo/nova-time-field
The missing Laravel Nova time field
https://github.com/oneduo/nova-time-field
Last synced: about 2 months ago
JSON representation
The missing Laravel Nova time field
- Host: GitHub
- URL: https://github.com/oneduo/nova-time-field
- Owner: oneduo
- License: mit
- Created: 2022-11-18T17:12:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-18T17:25:12.000Z (about 2 years ago)
- Last Synced: 2024-11-16T08:48:20.690Z (about 2 months ago)
- Language: PHP
- Size: 54.7 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Laravel Nova Time field
![Status](https://img.shields.io/badge/status-active-success.svg)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)
![PHP](https://img.shields.io/badge/PHP-8.0-blue.svg)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/oneduo/nova-time-field.svg)](https://packagist.org/packages/oneduo/nova-time-field)
[![Downloads](https://img.shields.io/packagist/dt/oneduo/nova-time-field.svg)](https://packagist.org/packages/oneduo/nova-time-field)
[![Run tests](https://github.com/oneduo/nova-time-field/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/oneduo/nova-time-field/actions/workflows/tests.yml)---
## Table of Contents
- [Getting Started](#getting_started)
- [Prerequisites](#prerequisites)
- [Installing](#installing)
- [Usage](#usage)
- [Authors](#authors)
- [Changelog](#changelog)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)### 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!
You may use the `Time` in your Nova resource :
```php
// app/Nova/User.phpuse Oneduo\NovaTimeField\Time;
class User extends Resource
{
// ...public function fields(NovaRequest $request): array
{
return [
// ... any other fields
Time::make(__('time'), 'time'),
];
}
}
```- [Mikaël Popowicz](https://github.com/mikaelpopowicz)
- [Charaf Rezrazi](https://github.com/rezrazi)See also the list of [contributors](https://github.com/oneduo/nova-time-field/contributors) who
participated in this project.## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Security
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.