I love Eloquent factories. They save so much time and allow me to write very readable tests. As great as they are, you should never use them in application code. Today's tip explains why.
masteringlaravel.io/daily/2025-04-01-why-i-would-not-use-a-factory-in-application-code
Back