@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function indexPopup() |
| 15 | 15 | { |
| 16 | 16 | $popups = config('adminetic.caching', true) |
| 17 | - ? (Cache::has('popups') ? Cache::get('popups') : Cache::rememberForever('popups', function () { |
|
| 17 | + ? (Cache::has('popups') ? Cache::get('popups') : Cache::rememberForever('popups', function() { |
|
| 18 | 18 | return Popup::latest()->get(); |
| 19 | 19 | })) |
| 20 | 20 | : Popup::latest()->get(); |
@@ -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 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | use Illuminate\Support\Facades\Route; |
| 39 | 39 | |
| 40 | 40 | if (config('website.website_client_api_end_points', true)) { |
| 41 | - Route::prefix(config('website.client_api_prefix', 'client'))->group(function () { |
|
| 41 | + Route::prefix(config('website.client_api_prefix', 'client'))->group(function() { |
|
| 42 | 42 | Route::get('client', [ClientClientAPIController::class, 'index']); |
| 43 | 43 | Route::get('client/{client}', [ClientClientAPIController::class, 'show']); |
| 44 | 44 | Route::get('counter', [CounterClientAPIController::class, 'index']); |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | if (config('website.website_restful_api_end_points', true)) { |
| 80 | - Route::group(['prefix' => config('website.rest_api_prefix', 'rest'), 'middleware' => ['auth:api']], function () { |
|
| 80 | + Route::group(['prefix' => config('website.rest_api_prefix', 'rest'), 'middleware' => ['auth:api']], function() { |
|
| 81 | 81 | Route::resource('client', ClientRestAPIController::class); |
| 82 | 82 | Route::resource('counter', CounterRestAPIController::class); |
| 83 | 83 | Route::resource('event', EventRestAPIController::class); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('categorizables', function (Blueprint $table) { |
|
| 16 | + Schema::create('categorizables', function(Blueprint $table) { |
|
| 17 | 17 | $table->unsignedBigInteger('category_id'); |
| 18 | 18 | $table->unsignedBigInteger('categorizable_id'); |
| 19 | 19 | $table->string('categorizable_type'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('categories', function (Blueprint $table) { |
|
| 16 | + Schema::create('categories', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('model'); |
| 19 | 19 | $table->string('code')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | public function indexCategory() |
| 14 | 14 | { |
| 15 | 15 | $categories = config('adminetic.caching', true) |
| 16 | - ? (Cache::has('categories') ? Cache::get('categories') : Cache::rememberForever('categories', function () { |
|
| 16 | + ? (Cache::has('categories') ? Cache::get('categories') : Cache::rememberForever('categories', function() { |
|
| 17 | 17 | return Category::whereNull('category_id')->with('childrenCategories')->orderBy('position')->get(); |
| 18 | 18 | })) |
| 19 | 19 | : Category::whereNull('category_id')->with('childrenCategories')->orderBy('position')->get(); |
@@ -20,15 +20,15 @@ |
||
| 20 | 20 | { |
| 21 | 21 | parent::boot(); |
| 22 | 22 | |
| 23 | - static::saving(function () { |
|
| 23 | + static::saving(function() { |
|
| 24 | 24 | self::cacheKey(); |
| 25 | 25 | }); |
| 26 | 26 | |
| 27 | - static::deleting(function () { |
|
| 27 | + static::deleting(function() { |
|
| 28 | 28 | self::cacheKey(); |
| 29 | 29 | }); |
| 30 | 30 | |
| 31 | - Category::creating(function ($model) { |
|
| 31 | + Category::creating(function($model) { |
|
| 32 | 32 | $model->position = Category::max('position') + 1; |
| 33 | 33 | }); |
| 34 | 34 | } |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | { |
| 72 | 72 | $traitTemplate = file_get_contents(__DIR__.'/../../Console/Stubs/CategoryMorphedByMany.stub'); |
| 73 | 73 | |
| 74 | - if (! file_exists($path = app_path('Traits'))) { |
|
| 74 | + if (!file_exists($path = app_path('Traits'))) { |
|
| 75 | 75 | mkdir($path, 0777, true); |
| 76 | 76 | } |
| 77 | 77 | |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | */ |
| 164 | 164 | protected function registerRoutes() |
| 165 | 165 | { |
| 166 | - Route::group($this->routeConfiguration(), function () { |
|
| 166 | + Route::group($this->routeConfiguration(), function() { |
|
| 167 | 167 | $this->loadRoutesFrom(__DIR__.'/../../routes/web.php'); |
| 168 | 168 | }); |
| 169 | 169 | } |