I am trying to update the profile picture of user via ajax. So far I have stored the new image in db, displayed the loading gif, but I am unable to update the image which is being displayed. I am having problem attaching the response variable to src attribute which is again generated using laravel url().
success: function(data){
$('#displayPhoto').html('<img src="{{url('images/profile/')}}.data[0]" alt="" class="responsive-img" style="height: 132px; width: 132px;">');
});