$this->auth() ]; $fields = ['*']; $sort = '`id` desc'; $page = request('page', 1); $limit = request('limit', 20); return CollectFacade::getList($conditions, $fields, $sort, $page, $limit); } /** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(Request $request) { $data = $request->only(['column','object_id']); $data['uid'] = $this->auth(); $data['repeat'] = 'uid:'.$data['uid'].' column:'.$data['column'].' object_id:'.$data['object_id']; return CollectFacade::create($data); } /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { // } /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // } }