Skip to content

Commit

Permalink
Merge pull request #7 from srichter/fix_cron_key_field_validation
Browse files Browse the repository at this point in the history
Fix validation of cron_key field
  • Loading branch information
OwenMelbz authored Oct 4, 2019
2 parents 87f2c30 + c8fbe7f commit 26f17c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/WebsiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 26f17c1

Please sign in to comment.