vendredi 10 avril 2020

how to use success message in view function along with withDeatils?

my return tag containing withhDetails and success message.. while return is perform the success msg is not printing and my code is below controller:

public function listing($id)
{

    $data=Registration::where('id',$id)->get();      
    return view('search')->withDetails($data)->with('sucess','data updated');
}

view:

@if($message=Session::get('sucess'))
                                <div class="alert alert-sucess">
                                  <p></p>
                                </div>
                              @endif


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire