АП
Size: a a a
АП
АП
a
MD
php artisan optimize
a
php artisan optimize
АП
a
BlackList::whereIn('phone', $phones)
->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString())
->get()
как сделать, чтобы он выбирал всё, если колонки time_start и time_end пустые? сейчас работает только если указаны значения там.v
BlackList::whereIn('phone', $phones)
->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString())
->get()
как сделать, чтобы он выбирал всё, если колонки time_start и time_end пустые? сейчас работает только если указаны значения там.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());->whereNull('time_start')
->whereNull('time_end');Н
a
BlackList::whereIn('phone', $phones)->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString());->whereNull('time_start')
->whereNull('time_end');v
Н
v
BlackList::whereIn('phone', $phones)->where('time_start', '>', Carbon::now()->toTimeString())
->where('time_end', '>', Carbon::now()->toTimeString());->whereNull('time_start')
->whereNull('time_end');a
AR
NT