Minimum post body set to 5 chars - Siden Stian er så kresen

This commit is contained in:
Alex Thomassen 2020-04-01 09:46:15 +02:00
parent 31c18affb9
commit c517769cc3
Signed by: Alex
GPG Key ID: 10BD786B5F6FF5DE
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class BlogPostRequest extends FormRequest
{
return [
'title' => 'required|min:5|max:150',
'body' => 'required|min:20|max:10000',
'body' => 'required|min:5|max:10000',
];
}

View File

@ -37,7 +37,7 @@
<div class="input-group-prepend">
<span class="input-group-text"><i class="fab fa-markdown fa-fw"></i></span>
</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>
<small id="bodyHelp" class="form-text text-muted">The body of your blog post. Supports <i class="fab fa-markdown"></i> Markdown!</small>