hasOne(Customer::class,'id','customer_id'); } public function staff() { return $this->hasOne(User::class,'id','staff_id'); } }