|
@@ -54,7 +54,7 @@ class PostController extends Controller
|
|
'topic_ids' => 'required|string|max:64',
|
|
'topic_ids' => 'required|string|max:64',
|
|
'title' => 'nullable|string|max:20',
|
|
'title' => 'nullable|string|max:20',
|
|
'content' => 'required|string|max:1000',
|
|
'content' => 'required|string|max:1000',
|
|
- 'location' => 'nullable|string|max:20',
|
|
|
|
|
|
+ 'location' => 'nullable|string|max:32',
|
|
'imgs' => 'required_if:type,image|string',
|
|
'imgs' => 'required_if:type,image|string',
|
|
]);
|
|
]);
|
|
if ($validator->fails()) {
|
|
if ($validator->fails()) {
|