Laravel Nova custom field for Spatie Opening Hours
You can install the package in to a Laravel app that uses Nova via composer:
composer require sadekd/nova-opening-hours-fieldLaravel Model
protected $casts = [
'opening_hours' => 'array',
];Nova Resource
public function fields(Request $request)
{
return [
ID::make(),
NovaOpeningHoursField::make('opening_hours'),
...- Explode interval input => time fields
- Validation
- Localization
- Exceptions
- Tests
The MIT License (MIT). Please see License File for more information.
