redirect - Error Message in Laravel -
im using redirect::back()->witherrors($exception) not able display error message on page. here controller
try{ } catch(parseexception $pex){ $error=var_dump($pex->getmessage()); return redirect::back()->withinput()->witherros(array('msg'=>$error)); }
and here view
{ form::open(array('action' =>'userscontroller@register','class' => 'form-horizontal','id'=> 'registrationform' ,'name' => 'registrationform','method' => 'post')) }} <div class="body bg-gray"> <!--kullanicinin girmesi gereken bilgiler--> @if($errors->any()) <div class="form-group has-error"> <div class="col-sm-12"> <h4>error:{{$erros->first('code')}}</h4><br/> <label>{{$errors->first('msg')}}</label> </div> </div> @endif
any ideas? thanks
Comments
Post a Comment