Delete in Laravel with join condition

By | August 29, 2017

Below query using DB::table is for deleting records from a table using join with other table

  • Shrinivasa

    didn’t work for me

    SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails