on success function i am receiving an array and passing it to blade view every thing works fine but problem is that here is a model function(product) which i can use in bade