File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3
3
namespace QCod \ImageUp ;
4
4
5
5
use Illuminate \Support \Arr ;
6
+ use Illuminate \Support \Str ;
6
7
use Intervention \Image \Facades \Image ;
7
8
use Illuminate \Support \Facades \Storage ;
8
9
use Illuminate \Contracts \Validation \Factory ;
@@ -455,7 +456,7 @@ protected function getImageUploadPath()
455
456
protected function getFileUploadPath ($ file )
456
457
{
457
458
// check if path override is defined for current file
458
- $ pathOverrideMethod = camel_case (strtolower ($ this ->uploadFieldName ) . 'UploadFilePath ' );
459
+ $ pathOverrideMethod = Str:: camel (strtolower ($ this ->uploadFieldName ) . 'UploadFilePath ' );
459
460
460
461
if (method_exists ($ this , $ pathOverrideMethod )) {
461
462
return $ this ->getImageUploadPath () . '/ ' . $ this ->$ pathOverrideMethod ($ file );
You can’t perform that action at this time.
0 commit comments