Is it possible to trigger a flash message from an ajax request.
$.ajax({
url: '/product/destroy/',
type: 'post',
data: {id:id, _method: 'delete', _token: '' },
success:function(data) {
//trigger the flash message here
}
});
I suppose you need access to the session in laravel?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2wqe51S
via IFTTT
Aucun commentaire:
Enregistrer un commentaire