@@ -195,7 +195,7 @@ |
||
| 195 | 195 | { |
| 196 | 196 | $search = $this->search ?? null; |
| 197 | 197 | if ($search != '') { |
| 198 | - return Post::where(function ($query) use ($search) { |
|
| 198 | + return Post::where(function($query) use ($search) { |
|
| 199 | 199 | $query->where('name', 'LIKE', '%'.$search.'%') |
| 200 | 200 | ->orWhere('excerpt', 'LIKE', '%'.$search.'%') |
| 201 | 201 | ->orWhere('seo_name', 'LIKE', '%'.$search.'%') |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | */ |
| 195 | 195 | protected function registerResource() |
| 196 | 196 | { |
| 197 | - if (! config('website.publish_migrations', true)) { |
|
| 197 | + if (!config('website.publish_migrations', true)) { |
|
| 198 | 198 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); // Loading Migration Files |
| 199 | 199 | } |
| 200 | 200 | $this->loadViewsFrom(__DIR__.'/../../resources/views', 'website'); // Loading Views Files |
@@ -223,12 +223,12 @@ discard block |
||
| 223 | 223 | */ |
| 224 | 224 | protected function registerRoutes() |
| 225 | 225 | { |
| 226 | - Route::group($this->routeConfiguration(), function () { |
|
| 226 | + Route::group($this->routeConfiguration(), function() { |
|
| 227 | 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 () { |
|
| 231 | + Route::group($this->apiRouteConfiguration(), function() { |
|
| 232 | 232 | $this->loadRoutesFrom(__DIR__.'/../../routes/api.php'); |
| 233 | 233 | }); |
| 234 | 234 | } |
@@ -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 | |