jeudi 7 juillet 2016

Laravel 5.1 Redirect with variable

I am trying to redirect in Laravel like this:

in my controller:

  $state = false;
  return redirect()->route('newPr')->with('errorMessageDuration', 'error', $state);

and in my view I try to get it like this:

<input id="PrId" type="text" value="">

but somehow it does not work, it keeps being empty.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire