force 方法用于數(shù)據(jù)集的強制索引操作,例如:

Db::table('think_user')->force('user')->select();

對查詢強制使用user索引,user必須是數(shù)據(jù)表實際創(chuàng)建的索引名稱。