@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | $files = $request->file($column); |
44 | 44 | $values = []; |
45 | 45 | foreach ($files as $file) { |
46 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
47 | - $path = trim(config('dbm.filesystem.dir'), '/') . DIRECTORY_SEPARATOR . $tableName; |
|
46 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
47 | + $path = trim(config('dbm.filesystem.dir'), '/').DIRECTORY_SEPARATOR.$tableName; |
|
48 | 48 | $file->storeAs($path, $fileName); |
49 | 49 | $values[] = $fileName; |
50 | 50 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $fieldType = $this->getFieldType($tableName, $column); |
79 | 79 | |
80 | 80 | if (!in_array($fieldType, Type::getTypes())) { |
81 | - $this->generateError([$fieldType . " type not supported."]); |
|
81 | + $this->generateError([$fieldType." type not supported."]); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | if ($fieldType != 'timestamp') { |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | $rules = $updateSettings->rules; |
253 | 253 | if (isset($updateSettings->localKey)) { |
254 | 254 | $localKey = $updateSettings->localKey; |
255 | - $rules = $updateSettings->rules . ',' . $columns->{$localKey}; |
|
255 | + $rules = $updateSettings->rules.','.$columns->{$localKey}; |
|
256 | 256 | } |
257 | 257 | } |
258 | 258 |