FIX: fixed errors when no error was defined
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<input type="text" name="email" placeholder="somebody@example.com">
|
<input type="text" name="email" placeholder="somebody@example.com">
|
||||||
|
|
||||||
@if ($errors->has('email'))
|
@if (isset($errors) && $errors->has('email'))
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<strong>{{ $errors->first('email') }}</strong>
|
<strong>{{ $errors->first('email') }}</strong>
|
||||||
</span>
|
</span>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
<input type="text" name="password">
|
<input type="text" name="password">
|
||||||
|
|
||||||
@if ($errors->has('password'))
|
@if (isset($errors) && $errors->has('password'))
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<strong>{{ $errors->first('password') }}</strong>
|
<strong>{{ $errors->first('password') }}</strong>
|
||||||
</span>
|
</span>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
|
|
||||||
@if ($errors->has('role'))
|
@if (isset($errors) && $errors->has('role'))
|
||||||
<span class="help-block">
|
<span class="help-block">
|
||||||
<strong>{{ $errors->first('role') }}</strong>
|
<strong>{{ $errors->first('role') }}</strong>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user