@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * Appends the configured backpack prefix and returns |
| 6 | 6 | * the URL using the standard Laravel helpers. |
| 7 | 7 | * |
| 8 | - * @param $path |
|
| 8 | + * @param string $path |
|
| 9 | 9 | * |
| 10 | 10 | * @return string |
| 11 | 11 | */ |
@@ -133,6 +133,10 @@ discard block |
||
| 133 | 133 | * on the current configured backpack |
| 134 | 134 | * view (see config/backpack/base.php) |
| 135 | 135 | */ |
| 136 | + |
|
| 137 | + /** |
|
| 138 | + * @param string $view |
|
| 139 | + */ |
|
| 136 | 140 | function backpack_view($view, $data) |
| 137 | 141 | { |
| 138 | 142 | $theme = config('backpack.base.theme'); |
@@ -137,7 +137,7 @@ |
||
| 137 | 137 | { |
| 138 | 138 | $theme = config('backpack.base.theme'); |
| 139 | 139 | $returnView = "backpack::{$theme}.{$view}"; |
| 140 | - if(!view()->exists($returnView)){ |
|
| 140 | + if (!view()->exists($returnView)) { |
|
| 141 | 141 | $returnView = "backpack::{$view}"; |
| 142 | 142 | } |
| 143 | 143 | return view($returnView, $data); |