title: Laravel Eloquent query similar to findorfail
body: <p>I would like to look up and return an object referenced by a different column to that of <code>id</code>.</p>
  
  <p>As far as I know there isn't another method similar to <code>Task::findOrFail($id)</code> but that can reference another field. For example:</p>
  
  <p><code>Task::findOrFail('column_name' = 'column_data');</code></p>
  
  <p>I'm currently using</p>
  
  <p><code>Task::where('tid' , '=', $tid)-&gt;first();</code></p>
  
  <p>Is this possible?</p>