diff --git a/app/Providers/TwigProvider.php b/app/Providers/TwigProvider.php index 45177eb..1137d68 100644 --- a/app/Providers/TwigProvider.php +++ b/app/Providers/TwigProvider.php @@ -21,6 +21,7 @@ class TwigProvider ViewFunctions\Markdown::class, ViewFunctions\ParentDir::class, ViewFunctions\SizeForHumans::class, + ViewFunctions\Url::class, ]; /** @var Container The application container */ diff --git a/app/ViewFunctions/Url.php b/app/ViewFunctions/Url.php new file mode 100644 index 0000000..41586ff --- /dev/null +++ b/app/ViewFunctions/Url.php @@ -0,0 +1,23 @@ +