@if (\Session::has('error')) @php $msg = \Session::get('error'); @endphp @endif @if (\Session::has('success')) @php $msg = \Session::get('success'); @endphp @endif @if ( !(\Session::has('error')) && !(\Session::has('success'))) @endif