Properly validate schedule names; closes #2405
This commit is contained in:
parent
48a104667f
commit
6a4914df3b
2 changed files with 10 additions and 7 deletions
|
@ -103,7 +103,7 @@ class Schedule extends Model
|
|||
*/
|
||||
public static $validationRules = [
|
||||
'server_id' => 'required|exists:servers,id',
|
||||
'name' => 'nullable|string|max:255',
|
||||
'name' => 'required|string|max:255',
|
||||
'cron_day_of_week' => 'required|string',
|
||||
'cron_day_of_month' => 'required|string',
|
||||
'cron_hour' => 'required|string',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue