Fix search and psql like queries need to be ilike for case insensitivity
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user