Example #1
0
 /**
  * Get the first model result for the query.
  *
  * @param  array  $columns
  * @return mixed
  */
 public function first($columns = array('*'))
 {
     $results = $this->hydrate($this->model, $this->table->take(1)->get($columns));
     return count($results) > 0 ? head($results) : null;
 }