How can I use switch in blade templates? When I used:
@switch($login_error) @case(1) `E-mail` input is empty! @break @case(2) `Pa
IN LARAVEL 5.2 AND UP:
Write your usual code between the opening and closing PHP statements.
@php switch (x) { case 1: //code to be executed break; default: //code to be executed } @endphp