So how i can add multi statement to query in ::where model.
Actually it lok like that: certs::where('unique', '=', $newUnique )->get()
i need somethig like that:
certs::where('unique, num', '=', $newUnique,$key )->get()
so in sql look like that
Select * From certs Where unique = $newUnique AND num = $key
I need that to check if data need to be updated or inserted.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire