我无法使用laravel
中的whereIn eloquent条件获取数据,但我可以无条件地获取所有数据。我怎么解决这个问题?
public function getOrders()
{
$customerNumberArr = Session::get('sales_customer');
$orderFormList = OrderForm::whereIn("CUSTOMER_NUMBER", $customerNumberArr)
->orderBy('id', 'desc')
->paginate(Config::get('common.per_page'));
return View::make('orderForms')->with('orderFormList',$orderFormList );
}