php - Compare column to an array of data -
I have tried to achieve something in Laravel, but it is not possible so far.
If this is possible, please let someone
- & gt; Where ("Note_ id", "! =", Array ('1', '2', '3')) should help - & gt; first (); Thank you in advance
Use whereNotIn , as explained in the document. Model :: whereNotIn ('note_id', array (1, 2, 3)) - & gt; first ();
Comments
Post a Comment