Fix search and psql like queries need to be ilike for case insensitivity

This commit is contained in:
2024-07-06 22:56:51 +10:00
parent 61fe84498a
commit 70e94bf6e6
7 changed files with 33 additions and 33 deletions

View File

@@ -32,7 +32,7 @@ class BroadbandTraffic extends Command
public function handle()
{
if ($this->option('supplier')) {
$o = Supplier::where('name','like',$this->option('supplier'))->singleOrFail();
$o = Supplier::where('name','ilike',$this->option('supplier'))->singleOrFail();
Job::dispatchSync($o->id);
return;