Ejemplo n.º 1
0
 public function Users()
 {
     return $this->belongsToMany(User::getClass())->withPivot('status');
 }
Ejemplo n.º 2
0
 public function userSchool($id)
 {
     return $this->belongsToMany(User::getClass(), 'school_user')->wherePivot('user_id', $id);
 }
Ejemplo n.º 3
0
 public function users()
 {
     return $this->belongsTo(User::getClass());
 }