@@ -25,17 +25,17 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function boot() |
| 27 | 27 | { |
| 28 | - view()->composer('layouts.admin.app', function ($view) { |
|
| 28 | + view()->composer('layouts.admin.app', function($view) { |
|
| 29 | 29 | $view->with('user', Auth::guard('admin')->user()); |
| 30 | 30 | $view->with('admin', $this->isAdmin(Auth::guard('admin')->user())); |
| 31 | 31 | }); |
| 32 | 32 | |
| 33 | - view()->composer(['layouts.front.app', 'front.categories.sidebar-category'], function ($view) { |
|
| 33 | + view()->composer(['layouts.front.app', 'front.categories.sidebar-category'], function($view) { |
|
| 34 | 34 | $view->with('categories', $this->getCategories()); |
| 35 | 35 | $view->with('cartCount', $this->getCartCount()); |
| 36 | 36 | }); |
| 37 | 37 | |
| 38 | - view()->composer(['layouts.front.category-nav'], function ($view) { |
|
| 38 | + view()->composer(['layouts.front.category-nav'], function($view) { |
|
| 39 | 39 | $view->with('categories', $this->getCategories()); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $list = $this->productRepo->searchProduct(request()->input('q')); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - $products = $list->map(function (Product $item) { |
|
| 42 | + $products = $list->map(function(Product $item) { |
|
| 43 | 43 | return $this->transformProduct($item); |
| 44 | 44 | }); |
| 45 | 45 | |