src/Mediable.php
private function extractIds($input)
    {
        if ($input instanceof Collection) {
            return $input->modelKeys();
        }

        if ($input instanceof Media) {
            return [$input->getKey()];
        }

        return (array) $input;
    }
private function extractIds($input)
    {
        if ($input instanceof Collection) {
            return $input->modelKeys();
        }

        if ($input instanceof Media) {
            return [$input->getKey()];
        }

        return (array) $input;
    }
private function extractIds ( $ input ) { if ( $ input instanceof Collection ) { return $ input -> modelKeys ( ) ; } if ( $ input instanceof Media ) { return [ $ input -> getKey ( ) ] ; } return ( array ) $ input ; }
Convert mixed input to array of ids.
@param  mixed $input
@return array
Convert mixed input to array of ids .