This code should work as far as I know but I get this error :
SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'where clause' (SQL: delete from `project_gate_criteria` where (`0` = fk_gate_criteria and `1` = 35 and `2` = fk_project_gate and `3` = 1))
As I understand this error this is laravel not creating request correctly, but I don't know if it's laravel building request wrong or me doing something wrong in my code.