Add character limit info

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>
This commit is contained in:
Marcin Mikołajczak 2018-06-01 22:52:09 +02:00
parent ba454e38e8
commit 7aea831a10
3 changed files with 5 additions and 5 deletions

View File

@ -30,9 +30,9 @@ class StatusController extends Controller
$user = Auth::user();
$this->validate($request, [
'photo' => 'required|image|max:15000',
'caption' => 'string|max:150',
'nullable' => 'string|max:420'
'photo' => 'required|image|max:15000',
'caption' => 'string|max:150',
'description' => 'nullable|string|max:420'
]);
$monthHash = hash('sha1', date('Y') . date('m'));

View File

@ -32,7 +32,7 @@
</div>
<div class="form-group">
<label class="font-weight-bold text-muted small">Alternative text</label>
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired">
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired. Up to 420 characters." maxlength="420">
</div>
<button type="submit" class="btn btn-outline-primary btn-block">Post</button>
</form>

View File

@ -32,7 +32,7 @@
</div>
<div class="form-group">
<label class="font-weight-bold text-muted small">Alternative text</label>
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired">
<input type="text" class="form-control" name="description" placeholder="Describe for the visually impaired. Up to 420 characters." maxlength="420">
</div>
<button type="submit" class="btn btn-outline-primary btn-block">Post</button>
</form>