АП
Size: a a a
АП
АП
a
MD
php artisan optimize
a
php artisan optimize
АП
a
BlackList::whereIn('phone', $phones)как сделать, чтобы он выбирал всё, если колонки time_start и time_end пустые? сейчас работает только если указаны значения там.
->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString())
->get()
v
BlackList::whereIn('phone', $phones)как сделать, чтобы он выбирал всё, если колонки time_start и time_end пустые? сейчас работает только если указаны значения там.
->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString())
->get()
a
a
a
The when method only executes the given Closure when the first parameter is true. If the first parameter is false, the Closure will not be executed.
v
BlackList::whereIn('phone', $phones)
->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString())
;->where
Null('time_start')
->wher
eNull('time_end')
;Н
a
BlackList::whereIn('phone', $phones)
->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString())
;->where
Null('time_start')
->wher
eNull('time_end')
;v
Н
v
BlackList::whereIn('phone', $phones)
->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString())
;->where
Null('time_start')
->wher
eNull('time_end')
;a
AR
NT