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

getHidden() public method

Get the hidden attributes for the model.
public getHidden ( ) : array
return array
    public function getHidden()
    {
        return $this->hidden;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Create new instance of eloquent type.
  *
  * @param Model $model
  */
 public function __construct(Model $model, $name = '')
 {
     $this->name = $name;
     $this->fields = collect();
     $this->hiddenFields = collect($model->getHidden())->flip();
     $this->model = $model;
     $this->camelCase = config('relay.camel_case', false);
 }
All Usage Examples Of Illuminate\Database\Eloquent\Model::getHidden
Model