Integrity constraint violation while testing Laravel api routes using sanctum
I've a Laravel app with api routes using Sanctum authentication. When I try to write a feature test for any api route, I always receive an error: "message": "SQLSTATE[23000]: Integrity constraint violation: 19 FOREIGN KEY constraint failed (SQL: insert into…