@@ -60,8 +60,8 @@ discard block |
||
60 | 60 | $files = $request->file($column); |
61 | 61 | $values = []; |
62 | 62 | foreach ($files as $file) { |
63 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
64 | - $path = 'public/dbm/' . $tableName; |
|
63 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
64 | + $path = 'public/dbm/'.$tableName; |
|
65 | 65 | $file->storeAs($path, $fileName); |
66 | 66 | $values[] = $fileName; |
67 | 67 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $fieldType = $this->getFieldType($tableName, $column); |
94 | 94 | |
95 | 95 | if (!in_array($fieldType, Type::getTypes())) { |
96 | - $this->generateError([$fieldType . " type not supported."]); |
|
96 | + $this->generateError([$fieldType." type not supported."]); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | $table->{$column} = Type::$fieldType($value); |
@@ -234,8 +234,8 @@ discard block |
||
234 | 234 | $files = $request->file($column); |
235 | 235 | $values = []; |
236 | 236 | foreach ($files as $file) { |
237 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
238 | - $path = 'public/dbm/' . $tableName; |
|
237 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
238 | + $path = 'public/dbm/'.$tableName; |
|
239 | 239 | $file->storeAs($path, $fileName); |
240 | 240 | $values[] = $fileName; |
241 | 241 | } |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | $fieldType = $this->getFieldType($tableName, $column); |
269 | 269 | |
270 | 270 | if (!in_array($fieldType, Type::getTypes())) { |
271 | - $this->generateError([$fieldType . " type not supported."]); |
|
271 | + $this->generateError([$fieldType." type not supported."]); |
|
272 | 272 | } |
273 | 273 | |
274 | 274 | $table->{$column} = Type::$fieldType($value); |
@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | |
474 | 474 | if (!empty($query) && !empty($searchColumn)) { |
475 | 475 | $records = DBM::model($model, $tableName) |
476 | - ->where($searchColumn, 'LIKE', '%' . $query . '%') |
|
476 | + ->where($searchColumn, 'LIKE', '%'.$query.'%') |
|
477 | 477 | ->paginate($perPage); |
478 | 478 | } |
479 | 479 |
@@ -118,7 +118,7 @@ |
||
118 | 118 | } else if ($action == 'update' && isset($settings->update)) { |
119 | 119 | $updateSettings = $settings->update; |
120 | 120 | $localKey = $updateSettings->localKey; |
121 | - $rules = $updateSettings->rules . ',' . $columns->{$localKey}; |
|
121 | + $rules = $updateSettings->rules.','.$columns->{$localKey}; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | return $rules; |