public static function transmute($items)
    {
        if (is_array($items)) {
            return $items;
        } elseif ($items instanceof Collection) {
            return $items->all();
        }

        return (array) $items;
    }
public static function transmute($items)
    {
        if (is_array($items)) {
            return $items;
        } elseif ($items instanceof Collection) {
            return $items->all();
        }

        return (array) $items;
    }
public static function transmute ( $ items ) { if ( is_array ( $ items ) ) { return $ items ; } elseif ( $ items instanceof Collection ) { return $ items -> all ( ) ; } return ( array ) $ items ; }
Transmute passed items as an array.

@param mixed $items

@return array
Transmute passed items as an array .