public static function morphMap(array $map = null, $merge = true)
    {
        $map = static::buildMorphMapFromModels($map);

        if (is_array($map)) {
            static::$morphMap = $merge && static::$morphMap
                            ? $map + static::$morphMap : $map;
        }

        return static::$morphMap;
    }
public static function morphMap(array $map = null, $merge = true)
    {
        $map = static::buildMorphMapFromModels($map);

        if (is_array($map)) {
            static::$morphMap = $merge && static::$morphMap
                            ? $map + static::$morphMap : $map;
        }

        return static::$morphMap;
    }
public static function morphMap ( array $ map = null , $ merge = true ) { $ map = static :: buildMorphMapFromModels ( $ map ) ; if ( is_array ( $ map ) ) { static :: $ morphMap = $ merge && static :: $ morphMap ? $ map + static :: $ morphMap : $ map ; } return static :: $ morphMap ; }
Set or get the morph map for polymorphic relations.

@param  array|null  $map
@param  bool  $merge
@return array
Set or get the morph map for polymorphic relations .