From 65c94080f6b8eae4a8217751de0dc847579c923d Mon Sep 17 00:00:00 2001 From: Sam Light Date: Sat, 15 Jun 2024 11:16:44 +0100 Subject: Initial commit --- src/SvgCollection.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/SvgCollection.php (limited to 'src/SvgCollection.php') diff --git a/src/SvgCollection.php b/src/SvgCollection.php new file mode 100644 index 0000000..6d7407f --- /dev/null +++ b/src/SvgCollection.php @@ -0,0 +1,30 @@ +paths[] = $path; + } + + public function getName(): string + { + return $this->name; + } + + public function getSvgUrl(string $svg): string + { + return route('laralight-svg.serve-svg', $this->getName()); + } + +} -- cgit v1.2.3