Skip to content

Commit ea7feec

Browse files
committed
Use facade in helper.
1 parent 7b0ea3f commit ea7feec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/helpers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare(strict_types=1);
44

55
use Illuminate\Support\HtmlString;
6+
use OsiemSiedem\Autolink\Facades\Autolink;
67

78
if ( ! function_exists('autolink')) {
89
/**
@@ -14,6 +15,6 @@
1415
*/
1516
function autolink(string $text, callable $callback = null): HtmlString
1617
{
17-
return app('osiemsiedem.autolink')->convert($text, $callback);
18+
return Autolink::convert($text, $callback);
1819
}
1920
}

0 commit comments

Comments
 (0)