Skip to content
Snippets Groups Projects
Commit 145c1a42 authored by Druc Constantin's avatar Druc Constantin
Browse files

Add root and disk config

parent 68aea2d6
No related branches found
Tags v0.0.1
No related merge requests found
......@@ -115,10 +115,10 @@ class Imager
*/
private function getTypeAbsolutePath($type)
{
return preg_replace(
return preg_replace(
'#/+#',
'/',
"{$this->disk}/{$this->groupDirectory}/{$this->type}/{$type}/");
"{$this->disk}/" . config('falcon-imager.root') . "/{$this->groupDirectory}/{$this->type}/{$type}/");
}
/**
......
......@@ -4,7 +4,14 @@ return [
/**
* Sets the root directory for the created images
*/
'disk' => 'images',
'disk' => 'public',
/**
* Sets the root directory on the selected disk
* As in: storage/app/{disk}/{root}
* which is storage/app/public/images - for the current config
*/
'root' => 'images',
/**
* Sets image driver used to do the manipulations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment