@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | $files = $request->file($column); |
35 | 35 | $values = []; |
36 | 36 | foreach ($files as $file) { |
37 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
38 | - $path = 'public/dbm/' . $tableName; |
|
37 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
38 | + $path = 'public/dbm/'.$tableName; |
|
39 | 39 | $file->storeAs($path, $fileName); |
40 | 40 | $values[] = $fileName; |
41 | 41 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $fieldType = $this->getFieldType($tableName, $column); |
62 | 62 | |
63 | 63 | if (!in_array($fieldType, Type::getTypes())) { |
64 | - $this->generateError([$fieldType . " type not supported."]); |
|
64 | + $this->generateError([$fieldType." type not supported."]); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | if ($fieldType != 'timestamp') { |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | } else if ($action == 'update' && isset($settings->update)) { |
175 | 175 | $updateSettings = $settings->update; |
176 | 176 | $localKey = $updateSettings->localKey; |
177 | - $rules = $updateSettings->rules . ',' . $columns->{$localKey}; |
|
177 | + $rules = $updateSettings->rules.','.$columns->{$localKey}; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | return $rules; |