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">
|
||||
|
||||
@if ($errors->has('email'))
|
||||
@if (isset($errors) && $errors->has('email'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('email') }}</strong>
|
||||
</span>
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<input type="text" name="password">
|
||||
|
||||
@if ($errors->has('password'))
|
||||
@if (isset($errors) && $errors->has('password'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('password') }}</strong>
|
||||
</span>
|
||||
@@ -44,7 +44,7 @@
|
||||
@endforeach
|
||||
|
||||
|
||||
@if ($errors->has('role'))
|
||||
@if (isset($errors) && $errors->has('role'))
|
||||
<span class="help-block">
|
||||
<strong>{{ $errors->first('role') }}</strong>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user