예제 #1
0
 public function findAddress($addressId, $studentId)
 {
     return Address::where(['user_id' => $this->findStudent($studentId)->user->id, 'id' => $addressId])->firstOrFail();
 }
예제 #2
0
 public function findAddress($addressId, $guardianId)
 {
     return Address::where(['user_id' => $this->findGuardian($guardianId)->user->id, 'id' => $addressId])->firstOrFail();
 }
예제 #3
0
 public function findAddress($addressId, $employeeId)
 {
     return Address::where(['user_id' => $this->findEmployee($employeeId)->user->id, 'id' => $addressId])->firstOrFail();
 }