trait HasWorkingHours

Methods

static 
bootHasWorkingHours()

No description

Carbon
getCurrentTime()

No description

availableWorkingTypes()

No description

listWorkingHours()

No description

mixed
workingHourType(null $hourType = null)

No description

getWorkingHoursByType($type)

No description

getWorkingHoursByDay($weekday)

No description

getWorkingHourByDayAndType($weekday, $type)

No description

getWorkingHourByDateAndType($date, $type)

No description

getWorkingHours()

No description

loadWorkingHours()

No description

newWorkingSchedule($type, $days = null)

No description

createScheduleItem($type)

No description

updateSchedule($type, $scheduleData)

No description

bool
addOpeningHours($type, array $data = [])

Create a new or update existing location working hours

parseHoursFromOptions($value)

No description

createDefaultWorkingHours()

No description

Details

at line 16
static bootHasWorkingHours()

No description

at line 38
Carbon getCurrentTime()

No description

Return Value

Carbon

at line 43
availableWorkingTypes()

No description

at line 50
listWorkingHours()

No description

at line 60
mixed workingHourType(null $hourType = null)

No description

Parameters

null $hourType

Return Value

mixed

24_7, daily or flexible

at line 65
getWorkingHoursByType($type)

No description

Parameters

$type

at line 70
getWorkingHoursByDay($weekday)

No description

Parameters

$weekday

at line 75
getWorkingHourByDayAndType($weekday, $type)

No description

Parameters

$weekday
$type

at line 83
getWorkingHourByDateAndType($date, $type)

No description

Parameters

$date
$type

at line 93
getWorkingHours()

No description

at line 108
loadWorkingHours()

No description

at line 113
newWorkingSchedule($type, $days = null)

No description

Parameters

$type
$days

at line 140
createScheduleItem($type)

No description

Parameters

$type

at line 150
updateSchedule($type, $scheduleData)

No description

Parameters

$type
$scheduleData

at line 168
bool addOpeningHours($type, array $data = [])

Create a new or update existing location working hours

Parameters

$type
array $data

Return Value

bool

at line 203
protected parseHoursFromOptions($value)

No description

Parameters

$value

at line 238
protected createDefaultWorkingHours()

No description