@@ -40,16 +40,16 @@ |
||
| 40 | 40 | return $this->view; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - if (view()->exists('admin.'.$this->urlPrefix().'.index')) { |
|
| 44 | - return 'admin.'.$this->urlPrefix().'.index'; |
|
| 43 | + if (view()->exists('admin.' . $this->urlPrefix() . '.index')) { |
|
| 44 | + return 'admin.' . $this->urlPrefix() . '.index'; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if (view()->exists('admin.'.$this->urlPrefix())) { |
|
| 48 | - return 'admin.'.$this->urlPrefix(); |
|
| 47 | + if (view()->exists('admin.' . $this->urlPrefix())) { |
|
| 48 | + return 'admin.' . $this->urlPrefix(); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - if (view()->exists('flare::'.$this->view)) { |
|
| 52 | - return 'flare::'.$this->view; |
|
| 51 | + if (view()->exists('flare::' . $this->view)) { |
|
| 52 | + return 'flare::' . $this->view; |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | return parent::getView(); |
@@ -29,11 +29,11 @@ |
||
| 29 | 29 | // parameter represents the DataTables column identifier. In this case simple |
| 30 | 30 | // indexes |
| 31 | 31 | $columns = array( |
| 32 | - array('db' => 'id', 'dt' => 0), |
|
| 33 | - array('db' => 'firstname', 'dt' => 1), |
|
| 34 | - array('db' => 'surname', 'dt' => 2), |
|
| 35 | - array('db' => 'zip', 'dt' => 3), |
|
| 36 | - array('db' => 'country', 'dt' => 4), |
|
| 32 | + array('db' => 'id', 'dt' => 0), |
|
| 33 | + array('db' => 'firstname', 'dt' => 1), |
|
| 34 | + array('db' => 'surname', 'dt' => 2), |
|
| 35 | + array('db' => 'zip', 'dt' => 3), |
|
| 36 | + array('db' => 'country', 'dt' => 4), |
|
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | // SQL server connection information |
@@ -170,8 +170,8 @@ |
||
| 170 | 170 | { |
| 171 | 171 | // Could swap this out for model -> getAttribute, then check if we have an attribute or a relation... getRelationValue() is helpful |
| 172 | 172 | if (method_exists($this->model, $key) && is_a(call_user_func_array([$this->model, $key], []), 'Illuminate\Database\Eloquent\Relations\Relation')) { |
| 173 | - foreach ($this->{$action.'Relations'} as $relationship => $method) { |
|
| 174 | - if (is_a(call_user_func_array([$this->model, $key], []), 'Illuminate\Database\Eloquent\Relations\\'.$relationship)) { |
|
| 173 | + foreach ($this->{$action . 'Relations'} as $relationship => $method) { |
|
| 174 | + if (is_a(call_user_func_array([$this->model, $key], []), 'Illuminate\Database\Eloquent\Relations\\' . $relationship)) { |
|
| 175 | 175 | $this->model->$key()->$method($value); |
| 176 | 176 | |
| 177 | 177 | return; |