skip to Main Content

How to handle deadlocks in Laravel

Laravel docs recommends using attempts to deal with Deadlocks (https://shorturl.at/bsKta) But, the handleTransactionException() method inside the transaction() method has a comment: On a deadlock, MySQL rolls back the entire transaction so we can't just retry the query. We have to…

VIEW QUESTION

Laravel Sail – SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;

Anyone knows why this query is returning error? I'm using Laravel Sail with Mysql version: 8.0.32, it should work: Property::select(DB::raw(" properties.id, properties.company_id, properties.title, properties.slug, properties.neighborhood, properties.city, properties.address, properties.number, properties.property_purpose, properties.property_type, properties.total_area, properties.usefull_area, properties.bedrooms, properties.bathrooms, properties.garage, properties.sell, properties.rent, properties.administration_fee, properties.yearly_tax, property_highliteds.hightlight,…

VIEW QUESTION
Back To Top
Search