muazzamazaz
2 years ago

error : Internal Server Error

Posted 2 years ago by muazzamazaz
$.ajax({
        url:'/delprofile',
        type: 'delete',
        data: {  id: 5,
                '_token': $('meta[name="csrf-token"]').attr('content')
            },
         success: function(){ alert("Record deleted.") },
    error: function(jqXHR, textStatus, errorThrown) {
        console.log(textStatus + ' : ' + errorThrown);
 }
});

Route::delete('/delprofile','[email protected]');

Please sign in or create an account to participate in this conversation.