Laravel - Validation - The At Error Directive

You may use the @error Blade directive to quickly determine if validation error messages exist for a given attribute. Within an @error directive, you may echo the $message variable to display the error message:

    
    
    
    
    
    
    
    @error('title')
        
{{ $message }}
@enderror

If you are using named error bags, you may pass the name of the error bag as the second argument to the @error directive: