Use "??" instead of "or" to fall back on a default value as this is now what laravel expects

This commit is contained in:
Kevin MacMartin 2018-11-02 18:32:24 -04:00
parent 83e6ee060f
commit 717a09118f

View file

@ -17,7 +17,7 @@
<label class="col-12 col-md-4 col-form-label">E-Mail Address</label>
<div class="col-12 col-md-6">
<input class="form-control" type="email" name="email" value="{{ $email or old('email') }}" />
<input class="form-control" type="email" name="email" value="{{ $email ?? old('email') }}" />
@if ($errors->has('email'))
<span class="text-muted">