@@ -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 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $fieldType = $this->getFieldType($tableName, $column); |
114 | 114 | |
115 | 115 | if (!in_array($fieldType, Type::getTypes())) { |
116 | - $this->generateError([$fieldType . " type not supported."]); |
|
116 | + $this->generateError([$fieldType." type not supported."]); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | $value = Type::$fieldType($value); |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | |
344 | 344 | if (!empty($query) && !empty($searchColumn)) { |
345 | 345 | $records = DBM::model($model, $tableName) |
346 | - ->where($searchColumn, 'LIKE', '%' . $query . '%') |
|
346 | + ->where($searchColumn, 'LIKE', '%'.$query.'%') |
|
347 | 347 | ->paginate($perPage); |
348 | 348 | } |
349 | 349 |