'datetime', 'password' => 'hashed', ]; } /** * Relationship: User → MarkList (Many) */ public function marks() { return $this->hasMany(\App\Models\MarkList::class, 'customer_id', 'customer_id'); } /** * Relationship: User → Orders (Through MarkList) */ public function orders() { return $this->hasManyThrough( \App\Models\Order::class, \App\Models\MarkList::class, 'customer_id', // MarkList.customer_id 'mark_no', // Orders.mark_no 'customer_id', // Users.customer_id 'mark_no' // MarkList.mark_no ); } /** * JWT Identifier */ public function getJWTIdentifier() { return $this->getKey(); } /** * JWT Custom Claims */ public function getJWTCustomClaims() { return []; } }