From c8fbe7f52c8ecbebdc2c77d4fdc81d1b086fb474 Mon Sep 17 00:00:00 2001 From: Steve Richter Date: Fri, 4 Oct 2019 18:31:29 -0400 Subject: [PATCH] Fix validation of cron_key field --- app/Http/Controllers/WebsiteController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/WebsiteController.php b/app/Http/Controllers/WebsiteController.php index 41da64a..9ca0d14 100644 --- a/app/Http/Controllers/WebsiteController.php +++ b/app/Http/Controllers/WebsiteController.php @@ -100,7 +100,7 @@ public function store(Request $request) 'uptime_enabled' => 'boolean', 'uptime_keyword' => 'required_if:uptime_enabled,1', 'cron_enabled' => 'boolean', - 'cron_keyword' => 'required_if:cron_enabled,1', + 'cron_key' => 'required_if:cron_enabled,1', ]); $this->panel->beforeSave(function ($data) use ($request) { @@ -160,7 +160,7 @@ public function update(Request $request, Website $website) 'uptime_enabled' => 'boolean', 'uptime_keyword' => 'required_if:uptime_enabled,1', 'cron_enabled' => 'boolean', - 'cron_keyword' => 'required_if:cron_enabled,1', + 'cron_key' => 'required_if:cron_enabled,1', ]); $this->panel->setEntry($website);