feat:dish
This commit is contained in:
@@ -119,8 +119,10 @@ class DishService extends BaseService
|
||||
$limit = (int)$this->request->input('limit');
|
||||
$chef_id = $this->userId;
|
||||
$list = $this->DishModel
|
||||
->leftJoin('cycle','dish.cycle_id','=','cycle.id')
|
||||
->where('chef_id', $chef_id)
|
||||
->paginate($limit)->toArray();
|
||||
->orderBy('cycle.dates','desc')
|
||||
->paginate($limit,['dish.*','cycle.dates'])->toArray();
|
||||
|
||||
return $this->return->success('success',$list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user