|
@@ -166,7 +166,7 @@ class PostController extends Controller
|
|
|
'video' => 'required_if:type,video|string|url',
|
|
|
'video_id' => 'required_if:type,video|string',
|
|
|
'topic_ids' => 'required|string|max:64',
|
|
|
- 'title' => 'nullable|string|max:20',
|
|
|
+ 'title' => 'required_if:type,html|string|max:20',
|
|
|
'content' => 'required|string',
|
|
|
'location' => 'nullable|string|max:20',
|
|
|
'imgs' => 'required_if:type,image|array|max:9',
|