예제 #1
0
파일: Persona.php 프로젝트: juans05/pturimo
 public function user()
 {
     return $this->belongsTo(User::getClass());
 }
예제 #2
0
 public function user()
 {
     return $this->hasMany(User::getClass());
 }
예제 #3
0
파일: Paquete.php 프로젝트: juans05/pturimo
 public function reserva()
 {
     return $this->belongsToMany(User::getClass(), 'reserva');
 }