From d1585f16ff35150b49c455d8bc646a6dfa0b6e91 Mon Sep 17 00:00:00 2001 From: Anton Zheltyshev Date: Tue, 26 May 2020 14:53:10 +0300 Subject: [PATCH 1/2] Fix vars. --- app/Http/Controllers/Admin/Sites/SitesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/Sites/SitesController.php b/app/Http/Controllers/Admin/Sites/SitesController.php index 66edeb83..da0d5b86 100644 --- a/app/Http/Controllers/Admin/Sites/SitesController.php +++ b/app/Http/Controllers/Admin/Sites/SitesController.php @@ -178,7 +178,7 @@ public function update(UpdateSiteRequest $request, AdminSitesRepository $adminSi return back()->withInput($fillable); } else { $check = new SitesChecker(); - $check->handle($id); + $check->handle($id, 'web'); flash('Запись обновлена')->success(); return redirect()->route('admin.sites.index'); From 14fe8c383551e9f946409800b7ffc0c61c8e4ef9 Mon Sep 17 00:00:00 2001 From: Anton Zheltyshev Date: Tue, 26 May 2020 14:53:22 +0300 Subject: [PATCH 2/2] Fix column. --- .../2020_05_05_164146_add_pings_sites_thresholds.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/database/migrations/2020_05_05_164146_add_pings_sites_thresholds.php b/database/migrations/2020_05_05_164146_add_pings_sites_thresholds.php index ec1f57f5..08bf5f71 100644 --- a/database/migrations/2020_05_05_164146_add_pings_sites_thresholds.php +++ b/database/migrations/2020_05_05_164146_add_pings_sites_thresholds.php @@ -16,8 +16,10 @@ public function up() Schema::table( 'sites', function (Blueprint $table) { - $table->integer('ping_threshold')->default(0) - ->after('pending')->comment('Ping threshold (int) value'); + $table->integer('ping_threshold') + ->nullable() + ->after('pending') + ->comment('Ping threshold (int) value'); } ); }