finish basic crud api

This commit is contained in:
2020-08-09 18:48:13 +02:00
parent 644dbd9ea2
commit fa6d769daa
9 changed files with 229 additions and 27 deletions

View File

@@ -27,8 +27,9 @@ class EventRequest extends FormRequest
'name' => 'required',
'description' => 'nullable|string',
'category_id' => 'required|exists:event_categories,id',
'private' => 'boolean',
'start_date' => 'required|date',
'end_date' => 'date|after_or_equal:start_date',
'end_date' => 'date|after_or_equal:start_date|nullable',
'location' => 'string|nullable'
];
}