title: How can I use array_where in Laravel?
body: <p>I have an array (<code>$payments</code>) returned by an Eloquent query with the following <code>JSON</code> encoded output:</p>
  
  <pre><code>[{"id":1, "user_id":"34","amount":"1000","status":"0","created_at":"2016-08-18 14:24:59","updated_at":"2016-08-18 14:24:59"},
  {"id":3, "user_id":"33","amount":"300","status":"1","created_at":"2016-08-18 14:31:04","updated_at":"2016-08-18 14:33:20"},
  {"id":4, "user_id":"33","amount":"1000","status":"0","created_at":"2016-08-18 14:31:27","updated_at":"2016-08-18 14:31:27"},
  {"id":5, "user_id":"34","amount":"400","status":"1","created_at":"2016-08-18 14:42:02","updated_at":"2016-08-18 14:42:02"}]
  </code></pre>
  
  <p>I want to use the <code>array_where()</code> method in <code>Laravel</code> and filter <code>$payments</code> according this condition : <code>status == 1</code>, could anyone tell me how to do that?</p>