finish basic crud api

This commit is contained in:
Romain committed 2020-08-09 18:48:13 +02:00
1 parent 644dbd9ea2
commit fa6d769daa
9 files changed
+229 -27

No files matched your search

+2 -1
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'
];
}