Commit 572c454c authored by Nicolas Widart's avatar Nicolas Widart

return the file path

parent bea53b77
...@@ -47,6 +47,8 @@ class Imagy ...@@ -47,6 +47,8 @@ class Imagy
$image = $image->encode(pathinfo($path, PATHINFO_EXTENSION)); $image = $image->encode(pathinfo($path, PATHINFO_EXTENSION));
$this->finder->put(public_path() . $filename, $image); $this->finder->put(public_path() . $filename, $image);
return $filename;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment