@csrf @method('PUT')
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('total_marks')) {{ $errors->first('total_marks') }} @endif
@if ($errors->has('passing_marks')) {{ $errors->first('passing_marks') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
Example invalid form file