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

Popular posts from this blog

php - how to change mysql_result($res, 0, "url"); to mysqli -

c# - How to clone a HttpRequestMessage when the original request has Content? -

split - php explode string with Uppercase if lowercase letter exists before it without space -