omarhen / nova-opening-hours-field

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:Vue 73.3%Language:PHP 16.5%Language:JavaScript 9.0%Language:CSS 1.2%