lundi 16 janvier 2017

how to display bootstrap success message in laravel 5.1

Hi Friend's need help how to display success message in laravel 5.1, I have applied it is working but twice display what is the reason . this is my layout.balde.php code

@if (session()->has('success'))
<div class="alert-success" id="popup_notification">
    <strong>{!! trans('main.message') !!}</strong>
</div>

@endif this is my controller page code:

  return Redirect::route($this->cdroute, array($customer_id))->with('success',trans($this->updatemsg));



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire