Completed
Branch develop (df0c9c)
by Eliurkis
01:47
created
src/CrudController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/FieldTypes/Foreign.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.