protected function getPrimaryMethodName($type)
    {
        $type = strtolower($type);
        $methodName = 'primary';

        if (in_array($type, ['int', 'integer'])) {
            $methodName = 'increments';
        } elseif (in_array($type, ['bigint', 'biginteger'])) {
            $methodName = 'bigIncrements';
        } elseif (in_array($type, ['mediuminteger', 'mediumincrements'])) {
            $methodName = 'mediumIncrements';
        }

        return $methodName;
    }
protected function getPrimaryMethodName($type)
    {
        $type = strtolower($type);
        $methodName = 'primary';

        if (in_array($type, ['int', 'integer'])) {
            $methodName = 'increments';
        } elseif (in_array($type, ['bigint', 'biginteger'])) {
            $methodName = 'bigIncrements';
        } elseif (in_array($type, ['mediuminteger', 'mediumincrements'])) {
            $methodName = 'mediumIncrements';
        }

        return $methodName;
    }
protected function getPrimaryMethodName ( $ type ) { $ type = strtolower ( $ type ) ; $ methodName = 'primary' ; if ( in_array ( $ type , [ 'int' , 'integer' ] ) ) { $ methodName = 'increments' ; } elseif ( in_array ( $ type , [ 'bigint' , 'biginteger' ] ) ) { $ methodName = 'bigIncrements' ; } elseif ( in_array ( $ type , [ 'mediuminteger' , 'mediumincrements' ] ) ) { $ methodName = 'mediumIncrements' ; } return $ methodName ; }
Gets the correct eloquent increment method from the given type.

@param string $type

@return string
Gets the correct eloquent increment method from the given type .