/nova-opening-hours-field

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

Primary LanguageVueMIT LicenseMIT

Nova Opening Hours Field

Laravel Nova custom field for Spatie Opening Hours

Screenshot Index

Screenshot Form

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 Migration

$table->json('opening_hours');

Laravel Model

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

Nova Resource

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.