Laravel Tinker query expression without quotes

Laravel put some quotes in your where you need to use DB::raw

Alternatively you can use whereRaw.

As you can see this is a command in Tinker but you can use in your php code same version.

PhpOffice\PhpSpreadsheet\Style\Conditional How to create a condition and format cells according a rule