ope_id = Auth::user()->ope_id ?? null; } }); } /** * 旧: ユーザーSEQで1件取得 */ public static function getUserBySeq($seq) { return static::find($seq); } /** * 旧: ユーザー区分(Usertype) */ public function getUserType() { return $this->belongsTo(Usertype::class, 'user_categoryid', 'user_categoryid')->first(); } /** * 旧: 氏名セレクト用 */ public static function getList() { return static::pluck('user_name', 'user_seq'); } /** * 旧: 電話番号取得 */ public static function getUserPhone() { return static::select('user_seq', 'user_name', 'user_mobile', 'user_homephone')->get(); } }