Laravel : Error messaging not working <p>Hello friends I have a form when i enter correct value and pressing submit button i am getting success message </p> <p>if i am entering wrong value then <strong>i am not getting error message please suugest something</strong></p> <p><strong>Controller</strong></p> <pre><code> if($getHours &lt;= 16) { DB::table('labors')-&gt;insert($labors_data); session::flash('status', 'Labor Timesheet Added Successfully'); return Redirect:: to('ViewLaborD2S'); } else { session::flash('status', 'You have entered More than 16 Hours'); return Redirect:: to('ViewLaborD2S'); } </code></pre> <p><strong>View</strong></p> <pre><code> @if (session('status')) &lt;div class="alert alert-success"&gt; &lt;p style="text-align:center;"&gt;{{ session('status') }}&lt;/p&gt; &lt;/div&gt; @else(session('message')) &lt;div class="alert alert-danger"&gt; &lt;p style="text-align:center;"&gt;{{ session('message') }}&lt;/p&gt; &lt;/div&gt; @endif </code></pre> <p>I want to show Success message if i entered correct value and if i enter wrong value show error message</p>