public firstOrFail ( ) : static | ||
return | static |
public function firstOrFail()
{
$item = $this->get(true, 0, 1)->first();
if (is_null($item)) {
throw new NoItemsFound(get_class($this));
}
return $item;
}