@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | if ($request->get('q') != '') { |
245 | 245 | $searchableCols = isset($this->searchable['columns']) ? $this->searchable['columns'] : $this->searchable; |
246 | 246 | |
247 | - $entity = $entity->where(function ($query) use ($request, $searchableCols) { |
|
247 | + $entity = $entity->where(function($query) use ($request, $searchableCols) { |
|
248 | 248 | foreach ($searchableCols as $field) { |
249 | 249 | $query->orWhere($field, 'like', '%'.$request->get('q').'%'); |
250 | 250 | } |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | |
291 | 291 | foreach ($foreignRelations as $foreignRelation) { |
292 | 292 | $values = $request->get($foreignRelation); |
293 | - $row->$foreignRelation()->sync((array)$values); |
|
293 | + $row->$foreignRelation()->sync((array) $values); |
|
294 | 294 | } |
295 | 295 | } |
296 | 296 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | $uniqueId = uniqid('opt', true).md5(mt_rand(1, 1000)); |
15 | 15 | $html .= |
16 | 16 | '<div class="col-md-'.$colsSize.' col-xs-12">'. |
17 | - \Form::checkbox($name.'[]', $key, in_array($key, (array)$value) ? true : false, ['id' => $uniqueId]). |
|
17 | + \Form::checkbox($name.'[]', $key, in_array($key, (array) $value) ? true : false, ['id' => $uniqueId]). |
|
18 | 18 | \Form::label($uniqueId, $option). |
19 | 19 | '</div>'; |
20 | 20 | } |