If I use $table->softDeletes()
in a migration, a deleted_at timestamp nullable column is added to the table.
从现在起,我可以得出结论,通过eloquent对该表的任何查询都将包含一个WHERE deleted_at IS NULL
子句,确保只返回实时记录.
But I noticed there is no index created for deleted_at. Shouldn't be paramount for this column to have an index?
我希望我错过了什么.