title: How can I add "and" condition in laravel?
body: <p>I want to add another condition to <code>(L_Examen_Objectif::where('libelle', '=', $request-&gt;input('libelle') )-&gt;exists())</code></p>
  <p>The condition If I get the same <strong>libelle</strong> has the same <strong>id</strong> it should return <code>True</code> (I don't want to insert the same libelle with the same id.)</p>
  <p>Here is it my code:</p>
  <pre><code> public function addPost(Request $request, $id)
   {
       if (L_Examen_Objectif::where('libelle', '=', $request-&gt;input('libelle') )-&gt;exists()) {
           return  'true';
       }
       else {
           $Examen_data = array(
               'libelle' =&gt; $request-&gt;input('libelle'),
               'id_examen' =&gt; $request-&gt;input('id_examen'),
               'id_lexamen' =&gt; $id,
           );
           L_Examen_Objectif::insert($Examen_data);    
       }
   }
  </code></pre>