Eloquentの概要は下記を参照していただきたいのですが、
http://laravel4.kore1server.com/docs/42/eloquent
一方にbelongsTo()を、もう一方ににhasOne()を設定すれば1対1のリレーションを設定できますし、
一方にbelongsTo()を、もう一方ににhasMany()を設定すれば1対多のリレーションを設定できます。
doctorsとclientsが1対多のリレーションであるなら下記のようにします。
lang
1class Doctor extends Eloquent{
2
3 public function clients() {
4 return $this->hasMany('Client');
5 }
6
7}
8
9class Client extends Eloquent {
10
11 public function doctor() {
12 return $this->belongsTo('Doctor');
13 }
14
15}
16
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。