@@ -30,8 +30,8 @@ discard block |
||
| 30 | 30 | $files = $request->file($column); |
| 31 | 31 | $values = []; |
| 32 | 32 | foreach ($files as $file) { |
| 33 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
| 34 | - $path = 'public/dbm/' . $tableName; |
|
| 33 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
| 34 | + $path = 'public/dbm/'.$tableName; |
|
| 35 | 35 | $file->storeAs($path, $fileName); |
| 36 | 36 | $values[] = $fileName; |
| 37 | 37 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $fieldType = $this->getFieldType($tableName, $column); |
| 58 | 58 | |
| 59 | 59 | if (!in_array($fieldType, Type::getTypes())) { |
| 60 | - $this->generateError([$fieldType . " type not supported."]); |
|
| 60 | + $this->generateError([$fieldType." type not supported."]); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | $value = Type::$fieldType($value); |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | } else if ($action == 'update' && isset($settings->update)) { |
| 247 | 247 | $updateSettings = $settings->update; |
| 248 | 248 | $localKey = $updateSettings->localKey; |
| 249 | - $rules = $updateSettings->rules . ',' . $columns->{$localKey}; |
|
| 249 | + $rules = $updateSettings->rules.','.$columns->{$localKey}; |
|
| 250 | 250 | } |
| 251 | 251 | |
| 252 | 252 | return $rules; |
@@ -228,7 +228,7 @@ |
||
| 228 | 228 | |
| 229 | 229 | if (!empty($query) && !empty($searchColumn)) { |
| 230 | 230 | $records = DBM::model($model, $tableName) |
| 231 | - ->where($searchColumn, 'LIKE', '%' . $query . '%') |
|
| 231 | + ->where($searchColumn, 'LIKE', '%'.$query.'%') |
|
| 232 | 232 | ->paginate($perPage); |
| 233 | 233 | } |
| 234 | 234 | |