@@ -39,10 +39,10 @@ |
||
39 | 39 | $model->setName($menu->name); |
40 | 40 | $model->setBasepath(config('crudbooster.ADMIN_PATH').'/'.basename($model->getUrl())); |
41 | 41 | } else { |
42 | - $model->setUrl($menu->path); |
|
42 | + $model->setUrl($menu->path); |
|
43 | 43 | $model->setIcon($menu->icon); |
44 | 44 | $model->setName($menu->name); |
45 | - } |
|
45 | + } |
|
46 | 46 | |
47 | 47 | if(request()->is($model->getBasepath()."*")) { |
48 | 48 | $model->setIsActive(true); |
@@ -28,11 +28,11 @@ |
||
28 | 28 | |
29 | 29 | public function assignment($value, $column) |
30 | 30 | { |
31 | - if($column->getFormat()) { |
|
32 | - return date_create_from_format($column->getFormat(), $value)->format('Y-m-d'); |
|
33 | - } else { |
|
34 | - return $value; |
|
35 | - } |
|
31 | + if($column->getFormat()) { |
|
32 | + return date_create_from_format($column->getFormat(), $value)->format('Y-m-d'); |
|
33 | + } else { |
|
34 | + return $value; |
|
35 | + } |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function detailRender($row, $column) |
@@ -29,11 +29,11 @@ |
||
29 | 29 | |
30 | 30 | public function assignment($value, $column) |
31 | 31 | { |
32 | - if($column->getFormat()) { |
|
33 | - return date_create_from_format($column->getFormat(), $value)->format('Y-m-d H:i:s'); |
|
34 | - } else { |
|
35 | - return $value; |
|
36 | - } |
|
32 | + if($column->getFormat()) { |
|
33 | + return date_create_from_format($column->getFormat(), $value)->format('Y-m-d H:i:s'); |
|
34 | + } else { |
|
35 | + return $value; |
|
36 | + } |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | public function detailRender($row, $column) |