src/Concerns/GuardsAttributes.php
public function getGuarded()
    {
        $guarded_create = !$this->exists ? $this->getAttributesFromSchema('guarded-create', false, true) : [];
        $guarded_update = $this->exists ? $this->getAttributesFromSchema('guarded-update', false, true) : [];
        $guarded = $this->getAttributesFromSchema('guarded', false, true);

        return array_merge($guarded_create, $guarded_update, $guarded);
    }
public function getGuarded()
    {
        $guarded_create = !$this->exists ? $this->getAttributesFromSchema('guarded-create', false, true) : [];
        $guarded_update = $this->exists ? $this->getAttributesFromSchema('guarded-update', false, true) : [];
        $guarded = $this->getAttributesFromSchema('guarded', false, true);

        return array_merge($guarded_create, $guarded_update, $guarded);
    }
public function getGuarded ( ) { $ guarded_create = ! $ this -> exists ? $ this -> getAttributesFromSchema ( 'guarded-create' , false , true ) : [ ] ; $ guarded_update = $ this -> exists ? $ this -> getAttributesFromSchema ( 'guarded-update' , false , true ) : [ ] ; $ guarded = $ this -> getAttributesFromSchema ( 'guarded' , false , true ) ; return array_merge ( $ guarded_create , $ guarded_update , $ guarded ) ; }
Get the guarded attributes for the model.

@return array
Get the guarded attributes for the model .