title: Laravel Eloquent "orWhere"
body: <p>I'm trying to use this code to check my DB to see if an item is in stock. If any one of the fields is equal to zero I want it to return zero.</p>
  
  <pre><code> if (DB::table('Inventory')
          -&gt;where('type', '=', $id)
          -&gt;where(Input::get('condition'), '=', 0)
          -&gt;orWhere(Input::get('memory'), '=', 0)
          -&gt;orWhere(Input::get('color'), '=', 0)
          -&gt;orWhere(Input::get('accessories'), '=', 0)
          -&gt;orWhere(Input::get('carrier'), '=', 0)
          -&gt;count() = 0)
  {
      return Redirect::back()
          -&gt;with('danger', 'This item is currently out of stock');
  }
  </code></pre>
  
  <p>This is the error I'm getting: <strong>Can't use method return value in write context</strong></p>
  
  <p>I've only been using laravel for a few days so please bear that in mind when rating this question.</p>