|
86 | 86 | <span class="text-danger">{{ $errors->first('env.mail_driver') }}</span> |
87 | 87 | @endif |
88 | 88 | </div> |
89 | | - <div class="form-group" v-if="mail.requiresHost"> |
90 | | - <label>{{ trans('forms.setup.mail_host') }} (optional)</label> |
91 | | - <input type="text" class="form-control" name="env[mail_host]" value="{{ Binput::old('env.mail_host', $mail_config['host']) }}" placeholder="{{ trans('forms.setup.mail_host') }}"> |
| 89 | + <div class="form-group"> |
| 90 | + <label>{{ trans('forms.setup.mail_host') }}</label> |
| 91 | + <input type="text" class="form-control" name="env[mail_host]" value="{{ Binput::old('env.mail_host', $mail_config['host']) }}" placeholder="{{ trans('forms.setup.mail_host') }}" :required="mail.requiresHost"> |
92 | 92 | @if($errors->has('env.mail_host')) |
93 | 93 | <span class="text-danger">{{ $errors->first('env.mail_host') }}</span> |
94 | 94 | @endif |
|
100 | 100 | <span class="text-danger">{{ $errors->first('env.mail_address') }}</span> |
101 | 101 | @endif |
102 | 102 | </div> |
103 | | - <div class="form-group" v-if="mail.requiresUsername"> |
| 103 | + <div class="form-group"> |
104 | 104 | <label>{{ trans('forms.setup.mail_username') }}</label> |
105 | | - <input type="text" class="form-control" name="env[mail_username]" value="{{ Binput::old('env.mail_username', $mail_config['username']) }}" placeholder="{{ trans('forms.setup.mail_username') }}"> |
| 105 | + <input type="text" class="form-control" name="env[mail_username]" value="{{ Binput::old('env.mail_username', $mail_config['username']) }}" placeholder="{{ trans('forms.setup.mail_username') }}" :required="mail.requiresUsername"> |
106 | 106 | @if($errors->has('env.mail_username')) |
107 | 107 | <span class="text-danger">{{ $errors->first('env.mail_username') }}</span> |
108 | 108 | @endif |
109 | 109 | </div> |
110 | | - <div class="form-group" v-if="mail.requiresPassword"> |
| 110 | + <div class="form-group"> |
111 | 111 | <label>{{ trans('forms.setup.mail_password') }}</label> |
112 | | - <input type="password" class="form-control" name="env[mail_password]" value="{{ Binput::old('env.mail_password', $mail_config['password']) }}" autocomplete="off" placeholder="{{ trans('forms.setup.mail_password') }}"> |
| 112 | + <input type="password" class="form-control" name="env[mail_password]" value="{{ Binput::old('env.mail_password', $mail_config['password']) }}" autocomplete="off" placeholder="{{ trans('forms.setup.mail_password') }}" :required="mail.requiresUsername"> |
113 | 113 | @if($errors->has('env.mail_password')) |
114 | 114 | <span class="text-danger">{{ $errors->first('env.mail_password') }}</span> |
115 | 115 | @endif |
|
0 commit comments