Minimum post body set to 5 chars - Siden Stian er så kresen
This commit is contained in:
parent
31c18affb9
commit
c517769cc3
@ -27,7 +27,7 @@ class BlogPostRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'title' => 'required|min:5|max:150',
|
'title' => 'required|min:5|max:150',
|
||||||
'body' => 'required|min:20|max:10000',
|
'body' => 'required|min:5|max:10000',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fab fa-markdown fa-fw"></i></span>
|
<span class="input-group-text"><i class="fab fa-markdown fa-fw"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<textarea class="form-control" minlength="20" maxlength="10000" aria-describedby="bodyHelp" name="body" id="body" rows="7"></textarea>
|
<textarea class="form-control" minlength="5" maxlength="10000" aria-describedby="bodyHelp" name="body" id="body" rows="7"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<small id="bodyHelp" class="form-text text-muted">The body of your blog post. Supports <i class="fab fa-markdown"></i> Markdown!</small>
|
<small id="bodyHelp" class="form-text text-muted">The body of your blog post. Supports <i class="fab fa-markdown"></i> Markdown!</small>
|
||||||
|
Loading…
Reference in New Issue
Block a user