@@ -175,15 +175,15 @@ discard block |
||
| 175 | 175 | { |
| 176 | 176 | // Publish Config File |
| 177 | 177 | $this->publishes([ |
| 178 | - __DIR__ . '/../../config/website.php' => config_path('website.php'), |
|
| 178 | + __DIR__.'/../../config/website.php' => config_path('website.php'), |
|
| 179 | 179 | ], 'website-config'); |
| 180 | 180 | // Publish View Files |
| 181 | 181 | $this->publishes([ |
| 182 | - __DIR__ . '/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'), |
|
| 182 | + __DIR__.'/../../resources/views' => resource_path('views/vendor/adminetic/plugin/website'), |
|
| 183 | 183 | ], 'website-views'); |
| 184 | 184 | // Publish Migration Files |
| 185 | 185 | $this->publishes([ |
| 186 | - __DIR__ . '/../../database/migrations' => database_path('migrations/website'), |
|
| 186 | + __DIR__.'/../../database/migrations' => database_path('migrations/website'), |
|
| 187 | 187 | ], 'website-migrations'); |
| 188 | 188 | } |
| 189 | 189 | |
@@ -195,9 +195,9 @@ discard block |
||
| 195 | 195 | protected function registerResource() |
| 196 | 196 | { |
| 197 | 197 | if (!config('website.publish_migrations', true)) { |
| 198 | - $this->loadMigrationsFrom(__DIR__ . '/../../database/migrations'); // Loading Migration Files |
|
| 198 | + $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files |
|
| 199 | 199 | } |
| 200 | - $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'website'); // Loading Views Files |
|
| 200 | + $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files |
|
| 201 | 201 | $this->registerRoutes(); |
| 202 | 202 | } |
| 203 | 203 | |
@@ -223,13 +223,13 @@ discard block |
||
| 223 | 223 | */ |
| 224 | 224 | protected function registerRoutes() |
| 225 | 225 | { |
| 226 | - Route::group($this->routeConfiguration(), function () { |
|
| 227 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/web.php'); |
|
| 226 | + Route::group($this->routeConfiguration(), function() { |
|
| 227 | + $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
|
| 228 | 228 | }); |
| 229 | 229 | |
| 230 | 230 | if (config('website.website_api_end_points', true)) { |
| 231 | - Route::group($this->apiRouteConfiguration(), function () { |
|
| 232 | - $this->loadRoutesFrom(__DIR__ . '/../../routes/api.php'); |
|
| 231 | + Route::group($this->apiRouteConfiguration(), function() { |
|
| 232 | + $this->loadRoutesFrom(__DIR__.'/../../routes/api.php'); |
|
| 233 | 233 | }); |
| 234 | 234 | } |
| 235 | 235 | } |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | public function render() |
| 42 | 42 | { |
| 43 | - $parentcategories = Category::whereNull('parent_id')->where(function ($q) { |
|
| 43 | + $parentcategories = Category::whereNull('parent_id')->where(function($q) { |
|
| 44 | 44 | return $q->where('model', $this->model)->orWhere('model', 'All'); |
| 45 | 45 | })->with('childrenCategories')->get(); |
| 46 | 46 | return view('website::livewire.admin.category.quick-category', compact('parentcategories')); |