Beispiel #1
0
 public function user()
 {
     return $this->belongsTo(User::getClass());
 }
Beispiel #2
0
 public function user()
 {
     return $this->hasMany(User::getClass());
 }
Beispiel #3
0
 public function reserva()
 {
     return $this->belongsToMany(User::getClass(), 'reserva');
 }