You mean you have multiple queries running and wants to rollback if one of them fails ? You can use transactions to do this. https://laravel.com/docs/5.3/database#database-transactions
I have an ajax who call a method wich running a big query. I want somethig like the user close the modal send another ajax to stop previous running query. I found something regarding mysql connection_id who return the process id of query and after send over sql command kill process_id. But didn't work the query still run in background. Thank a lot
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community