public function firstOrFail($columns = array()) { if (!is_null($model = $this->first($columns))) { return $model; } throw new ModelNotFoundException(); }