samedi 29 avril 2017

Flashed Session Data not shown in login page

I was trying to send a flash session data to my login page. Though the login page has the View of showing message but it doesn't appear:

$name = $request->name;
return view('cart.login',['name'=>$name])->with('success',"Login First to add to cart");

And this is how I was trying to display the success :

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

But the success message doesn't appear in the view. Can anyone help me to find out what could be possible error on that?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qpCjma
via IFTTT

Aucun commentaire:

Enregistrer un commentaire