Skip to content

Commit

Permalink
Max length for blogpost summary
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimot24 committed Jan 3, 2025
1 parent 4692fa4 commit 7ebdf0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/Controllers/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public function destroy(Page $page)

public function reorder()
{
//TODO Return JSON response

try {

Expand Down
2 changes: 1 addition & 1 deletion app/View/blogposts/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

<div class='form-group col mb-4'>
<label for='title'>{{ trans('blogpost.summary') }}</label>
<textarea type='text' class='form-control @error('summary') is-invalid @enderror' id='summary' name='summary'>{{ old('summary', isset($blogpost) ? $blogpost->summary : '') }}</textarea>
<textarea type='text' maxlength="255" class='form-control @error('summary') is-invalid @enderror' id='summary' name='summary'>{{ old('summary', isset($blogpost) ? $blogpost->summary : '') }}</textarea>
</br>

@error('summary')
Expand Down

0 comments on commit 7ebdf0a

Please sign in to comment.