title: how to print model query in laravel
body: <p>i am new in laravel and have to save the record in table , i am using this code to insert the value </p>
  
  <pre><code>$model-&gt;studentRollId = $value1;
  $model-&gt;resident_permit_number = $value2;
  $model-&gt;save()
  </code></pre>
  
  <p>i am not getting any error but record not inserting in the table , so can anyone please tell me how can i print the executed query by the $model->save(), i tried DB::getQueryLog() but its not shiwing the query log so i can fin what is the issue . thanks in advance </p>