error : Internal Server Error

Posted 1 year 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.

Reply to

Use Markdown with GitHub-flavored code blocks.