Illuminate\Database\Eloquent\Model::offsetUnset PHP Method

offsetUnset() public method

Unset the value for a given offset.
public offsetUnset ( mixed $offset ) : void
$offset mixed
return void
    public function offsetUnset($offset)
    {
        unset($this->{$offset});
    }

Usage Example

Example #1
0
 public function offsetUnset($offset)
 {
     return $this->model->offsetUnset($offset);
 }
Model