@@ -84,8 +84,8 @@ discard block |
||
| 84 | 84 | $files = $request->file($column); |
| 85 | 85 | $values = []; |
| 86 | 86 | foreach ($files as $file) { |
| 87 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
| 88 | - $path = 'public/dbm/' . $tableName; |
|
| 87 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
| 88 | + $path = 'public/dbm/'.$tableName; |
|
| 89 | 89 | $file->storeAs($path, $fileName); |
| 90 | 90 | $values[] = $fileName; |
| 91 | 91 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $fieldType = $this->getFieldType($tableName, $column); |
| 112 | 112 | |
| 113 | 113 | if (!in_array($fieldType, Type::getTypes())) { |
| 114 | - $this->generateError([$fieldType . " type not supported."]); |
|
| 114 | + $this->generateError([$fieldType." type not supported."]); |
|
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | $value = Type::$fieldType($value); |
@@ -200,8 +200,8 @@ discard block |
||
| 200 | 200 | $files = $request->file($column); |
| 201 | 201 | $values = []; |
| 202 | 202 | foreach ($files as $file) { |
| 203 | - $fileName = Str::random(config('dbm.filesystem.random_length')) . '.' . $file->getClientOriginalExtension(); |
|
| 204 | - $path = 'public/dbm/' . $tableName; |
|
| 203 | + $fileName = Str::random(config('dbm.filesystem.random_length')).'.'.$file->getClientOriginalExtension(); |
|
| 204 | + $path = 'public/dbm/'.$tableName; |
|
| 205 | 205 | $file->storeAs($path, $fileName); |
| 206 | 206 | $values[] = $fileName; |
| 207 | 207 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $fieldType = $this->getFieldType($tableName, $column); |
| 235 | 235 | |
| 236 | 236 | if (!in_array($fieldType, Type::getTypes())) { |
| 237 | - $this->generateError([$fieldType . " type not supported."]); |
|
| 237 | + $this->generateError([$fieldType." type not supported."]); |
|
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | $table->{$column} = Type::$fieldType($value); |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | |
| 378 | 378 | if (!empty($query) && !empty($searchColumn)) { |
| 379 | 379 | $records = DBM::model($model, $tableName) |
| 380 | - ->where($searchColumn, 'LIKE', '%' . $query . '%') |
|
| 380 | + ->where($searchColumn, 'LIKE', '%'.$query.'%') |
|
| 381 | 381 | ->paginate($perPage); |
| 382 | 382 | } |
| 383 | 383 | |