what's wrong with doing this?
$orders = Order::where('account_id',Auth::user()->id)->get();
foreach($orders as $order){
$order->methodOnOrderModel();
}
if you need only one object, you don't need to call ->get();
$order = Order::whereAccountId(Auth::user()->id)->whereClOrderId( Request::get( 'order_id', null ) )->first();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community