Skip to content

mngez/nova-opening-hours-field

 
 

Repository files navigation

Nova Opening Hours Field

Laravel Nova custom field for Spatie Opening Hours

screenshot

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require sadekd/nova-opening-hours-field

Usage

Laravel Model

protected $casts = [
    'opening_hours' => 'array',
];

Nova Resource

public function fields(Request $request)
{
    return [
        ID::make(),
        NovaOpeningHoursField::make('opening_hours'),
        ...

TODO

  • Explode interval input => time fields
  • Validation
  • Localization
  • Exceptions
  • Tests

License

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

About

Laravel Nova custom field for https://github.com/spatie/opening-hours

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • Vue 71.5%
  • PHP 17.6%
  • JavaScript 9.5%
  • CSS 1.4%