public static function type($path) { return \Illuminate\Filesystem\Filesystem::type($path); }
public static function isSameType(File $origin, $filename) { $extensions = explode('.', pathinfo($filename, PATHINFO_BASENAME)); array_shift($extensions); return $origin->type() == array_shift($extensions); }