@@ -90,7 +90,7 @@ |
||
| 90 | 90 | * filter \r |
| 91 | 91 | * |
| 92 | 92 | * @param string $path |
| 93 | - * @return mixed |
|
| 93 | + * @return string |
|
| 94 | 94 | */ |
| 95 | 95 | public function getHttpPathAttribute($path) |
| 96 | 96 | { |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | $grid->slug(trans('admin.slug')); |
| 91 | 91 | $grid->name(trans('admin.name')); |
| 92 | 92 | |
| 93 | - $grid->http_path(trans('admin.route'))->display(function ($path) { |
|
| 94 | - return collect(explode("\n", $path))->map(function ($path) { |
|
| 93 | + $grid->http_path(trans('admin.route'))->display(function($path) { |
|
| 94 | + return collect(explode("\n", $path))->map(function($path) { |
|
| 95 | 95 | $method = $this->http_method ?: ['ANY']; |
| 96 | 96 | |
| 97 | 97 | if (Str::contains($path, ':')) { |
@@ -99,9 +99,9 @@ discard block |
||
| 99 | 99 | $method = explode(',', $method); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - $method = collect($method)->map(function ($name) { |
|
| 102 | + $method = collect($method)->map(function($name) { |
|
| 103 | 103 | return strtoupper($name); |
| 104 | - })->map(function ($name) { |
|
| 104 | + })->map(function($name) { |
|
| 105 | 105 | return "<span class='label label-primary'>{$name}</span>"; |
| 106 | 106 | })->implode(' '); |
| 107 | 107 | |
@@ -116,8 +116,8 @@ discard block |
||
| 116 | 116 | $grid->created_at(trans('admin.created_at')); |
| 117 | 117 | $grid->updated_at(trans('admin.updated_at')); |
| 118 | 118 | |
| 119 | - $grid->tools(function (Grid\Tools $tools) { |
|
| 120 | - $tools->batch(function (Grid\Tools\BatchActions $actions) { |
|
| 119 | + $grid->tools(function(Grid\Tools $tools) { |
|
| 120 | + $tools->batch(function(Grid\Tools\BatchActions $actions) { |
|
| 121 | 121 | $actions->disableDelete(); |
| 122 | 122 | }); |
| 123 | 123 | }); |
@@ -142,8 +142,8 @@ discard block |
||
| 142 | 142 | $show->slug(trans('admin.slug')); |
| 143 | 143 | $show->name(trans('admin.name')); |
| 144 | 144 | |
| 145 | - $show->http_path(trans('admin.route'))->as(function ($path) { |
|
| 146 | - return collect(explode("\r\n", $path))->map(function ($path) { |
|
| 145 | + $show->http_path(trans('admin.route'))->as(function($path) { |
|
| 146 | + return collect(explode("\r\n", $path))->map(function($path) { |
|
| 147 | 147 | $method = $this->http_method ?: ['ANY']; |
| 148 | 148 | |
| 149 | 149 | if (Str::contains($path, ':')) { |
@@ -151,9 +151,9 @@ discard block |
||
| 151 | 151 | $method = explode(',', $method); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - $method = collect($method)->map(function ($name) { |
|
| 154 | + $method = collect($method)->map(function($name) { |
|
| 155 | 155 | return strtoupper($name); |
| 156 | - })->map(function ($name) { |
|
| 156 | + })->map(function($name) { |
|
| 157 | 157 | return "<span class='label label-primary'>{$name}</span>"; |
| 158 | 158 | })->implode(' '); |
| 159 | 159 | |