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