Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laravel-imager
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
falcon
laravel-imager
Commits
145c1a42
Commit
145c1a42
authored
7 years ago
by
Druc Constantin
Browse files
Options
Downloads
Patches
Plain Diff
Add root and disk config
parent
68aea2d6
No related branches found
Branches containing commit
Tags
v0.0.1
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Imager.php
+2
-2
2 additions, 2 deletions
src/Imager.php
src/config/falcon-imager.php
+8
-1
8 additions, 1 deletion
src/config/falcon-imager.php
with
10 additions
and
3 deletions
src/Imager.php
+
2
−
2
View file @
145c1a42
...
...
@@ -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
}
/"
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/config/falcon-imager.php
+
8
−
1
View file @
145c1a42
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment