Answers for "laravel How can I escase string in whereRaw"

PHP
0

laravel How can I escase string in whereRaw

$query->whereRaw( 'item.day ' . $sign . ' ?', [$filter_day]);



if (in_array($sign, ['=', '<', '>', '<=', '>=', '!=', '<>'])) {
    $query->whereRaw( 'item.day ' . $sign . ' ?', [$filter_day]);
}
Posted by: Guest on May-09-2022

Code answers related to "laravel How can I escase string in whereRaw"

Browse Popular Code Answers by Language