operator_id = Auth::user()->ope_id; }); } public static function search($inputs) { $list = self::query(); if ($inputs['isMethodPost']) { } // Sort if ($inputs['sort']) { $list->orderBy($inputs['sort'], $inputs['sort_type']); } if ($inputs['isExport']){ $list = $list->get(); }else{ $list = $list->paginate(Utils::item_per_page); } return $list; } public static function getByPk($pk) { return self::find($pk); } public static function deleteByPk($arr) { return self::whereIn('user_categoryid', $arr)->delete(); } //TODO 利用者分類ID not found in database specs //TODO 利用者分類名 not found in database specs public static function getList(){ return self::pluck('print_name','user_categoryid'); } }