Highlight the input field when there is an error

<input class="{{ $errors->has('title') ? 'danger' : ' '}}" .....>

Edit this note