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

getAttributes() public method

Get all of the current attributes on the model.
public getAttributes ( ) : array
return array
    public function getAttributes()
    {
        return $this->attributes;
    }

Usage Example

Example #1
0
 /**
  * Save an existing model and attach it to the parent model.
  *
  * @param  \Illuminate\Database\Eloquent\Model  $model
  * @return Model|bool
  */
 protected function performUpdate(Model $model)
 {
     $result = $this->query->update(array($this->localKey => $model->getAttributes()));
     if ($result) {
         $this->associate($model);
     }
     return $result ? $model : false;
 }
All Usage Examples Of Illuminate\Database\Eloquent\Model::getAttributes
Model