src/Concerns/HasAttributes.php
public function getCastParams()
    {
        if ($this->getIncrementing()) {
            return array_merge(
                [
                    $this->getKeyName() => $this->getKeyType(),
                ],
                $this->getAttributesFromSchema('cast', true)
            );
        }

        return $this->getAttributesFromSchema('cast-params', true);
    }
public function getCastParams()
    {
        if ($this->getIncrementing()) {
            return array_merge(
                [
                    $this->getKeyName() => $this->getKeyType(),
                ],
                $this->getAttributesFromSchema('cast', true)
            );
        }

        return $this->getAttributesFromSchema('cast-params', true);
    }
public function getCastParams ( ) { if ( $ this -> getIncrementing ( ) ) { return array_merge ( [ $ this -> getKeyName ( ) => $ this -> getKeyType ( ) , ] , $ this -> getAttributesFromSchema ( 'cast' , true ) ) ; } return $ this -> getAttributesFromSchema ( 'cast-params' , true ) ; }
Get the casts params array.

@return array
Get the casts params array .