Fix lack of Command Validating middleware

This commit is contained in:
James Brooks
2017-07-17 21:21:06 +01:00
parent 3ad23828ba
commit 39718c7936
8 changed files with 20 additions and 17 deletions

View File

@@ -71,7 +71,7 @@ final class CreateScheduleCommand
'status' => 'required|int|min:0|max:2',
'scheduled_at' => 'required|string',
'completed_at' => 'nullable|string',
'components' => 'required|array',
'components' => 'nullable|array',
];
/**
@@ -86,7 +86,7 @@ final class CreateScheduleCommand
*
* @return void
*/
public function __construct($name, $message, $status, $scheduled_at, $completed_at, array $components)
public function __construct($name, $message, $status, $scheduled_at, $completed_at, array $components = [])
{
$this->name = $name;
$this->message = $message;