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.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2nrYPyV
via IFTTT
Aucun commentaire:
Enregistrer un commentaire