@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | protected function mapWebRoutes() |
| 53 | 53 | { |
| 54 | 54 | Route::middleware('web') |
| 55 | - ->namespace($this->namespace) |
|
| 56 | - ->group(base_path('routes/web.php')); |
|
| 55 | + ->namespace($this->namespace) |
|
| 56 | + ->group(base_path('routes/web.php')); |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
| 66 | 66 | protected function mapApiRoutes() |
| 67 | 67 | { |
| 68 | 68 | Route::prefix('api') |
| 69 | - ->middleware('api') |
|
| 70 | - ->namespace($this->namespace) |
|
| 71 | - ->group(base_path('routes/api.php')); |
|
| 69 | + ->middleware('api') |
|
| 70 | + ->namespace($this->namespace) |
|
| 71 | + ->group(base_path('routes/api.php')); |
|
| 72 | 72 | } |
| 73 | 73 | } |
@@ -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 | |