lundi 28 août 2017

Ajax and store session in Laravel

I Like to store a id in session using AJAX in laravel,In normal php and jQuery i am using the following method ,& how to attain the same in laravel

Normal Method:

$('.action').click(function(){
    var editaction=($(this).attr("id"));
 $.ajax({
    type:"POST",
      url:"test_session.php",
      data:"test_id="+editaction,
      success:function(results){
        window.location.href="newredirect.php"
      }
    }); 
});



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire