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

offsetSet() public method

Set the value for a given offset.
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed
$value mixed
return void
    public function offsetSet($offset, $value)
    {
        $this->{$offset} = $value;
    }

Usage Example

Beispiel #1
0
 public function offsetSet($offset, $value)
 {
     return $this->model->offsetSet($offset, $value);
 }
Model