diff --git a/src/HTMLPurifierLaravel.php b/src/HTMLPurifierLaravel.php
index <HASH>..<HASH> 100644
--- a/src/HTMLPurifierLaravel.php
+++ b/src/HTMLPurifierLaravel.php
@@ -31,7 +31,7 @@ class HTMLPurifierLaravel {
 		$config = $this->getConfig();
 
 		// Filesystem
-		$this->filesystem = resolve(Filesystem::class);
+		$this->filesystem = app(Filesystem::class);
 
 		// Create cache directory
 		if (!$this->filesystem->isDirectory($config->get('Cache.SerializerPath'))) {
diff --git a/src/ParsedownExtraLaravel.php b/src/ParsedownExtraLaravel.php
index <HASH>..<HASH> 100644
--- a/src/ParsedownExtraLaravel.php
+++ b/src/ParsedownExtraLaravel.php
@@ -36,7 +36,7 @@ class ParsedownExtraLaravel extends ParsedownExtra {
 
 		// HTML Purifier
 		if (config('parsedownextra.purifier.enabled') && $options['purifier']) {
-			$purifier = resolve(HTMLPurifierLaravel::class);
+			$purifier = app(HTMLPurifierLaravel::class);
 
 			// Filter HTML
 			$markdown = $purifier->purify($markdown, $options['config']);
Use app() helper instead of resolve()