5 months ago

@error direct with or condition

Posted 5 months ago by zefex

I was using ternary operation to check for errors something like this: {{ $errors->has('username') || $errors->has('email') ? ' is-invalid' : '' }} and I noticed that Laravel introduced a new directive called @error so I was wondering, how to handle or condition using this directive like I was doing with the ternary operation?

Please sign in or create an account to participate in this conversation.