Random distinct user id for laravel factory relationship

后端 未结 0 1299
挽巷
挽巷 2021-01-12 02:58

I\'m using factory to generate more dummy datas.
Here is my code which calls factory

$users = User::whereIn(\'role_id\',[3,4])->where(\'is_active\',\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题