resources/js/components/Example.js
// invoke delete task from delete button from the tasks table
invoke delete task from delete button from the tasks table
invoke delete task from delete button from the tasks table
deleteTask(id){
        axios.delete('http://localhost:8000/api/task/'+id).then((response) => {
            this.loadTask()
        })
    }
deleteTask ( id ) { axios . delete ( 'http://localhost:8000/api/task/' + id ) . then ( ( response ) => { this . loadTask ( ) } ) }
invoke delete task from delete button from the tasks table
invoke delete task from delete button from the tasks table