请问with()

-> with('Employee', $Employee) -> with('provinces', $provinces) ->with('kinds', $kinds)
-> with('province_text', $province_text) -> with('city_text', $city_text)
-> with('province_id', $province_id) -> with('city_id', $city_id);
我觉得好多重复的 能怎么简写呢
已邀请:

jovem

赞同来自:

compact(array('fixtures', 'teams', 'selections')); 如果你的php版本>5.4 可用compact(['fixtures', 'teams', 'selections'])

form http://stackoverflow.com/quest ... -with

要回复问题请先登录注册