in the real world, deleted_at shouldn't be before to created_at
@newbie360 You’re using a factory to create a “trashed” record. So Laravel ensures the record is “trashed” by setting the deleted_at value to a date in the past. It doesn’t care what your created or updated timestamps are; it just sets deleted_at to a past date and time so that when you work with your models, that record is treated as being “trashed”.
@newbie360 I don't know if this is an absolute truth...
any logic based on the deleted_at will cause problem
For the most part, we check that the deleted_at date is not null; the when rarely matters, and especially compared to the created_at date. The example you provided above is not relevant IMHO.
In any event, these Factories are intended for testing purposes where you set up the world as you want it in order to test implementation(s) that you write/wrote; that is still the case... you can choose to use trashed method or not if it is an issue. You can choose to define your own Factory States, or not. You can choose to PR the framework if you feel strongly enough!