FIX: fixed errors when no error was defined

This commit is contained in:
Michal Kváček
2016-01-22 12:46:57 +01:00
parent 551e1af5fe
commit 7f1ab69e83
@@ -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>