예제 #1
0
 public function employee()
 {
     return $this->belongsTo(Employee::getClass());
 }
예제 #2
0
파일: Project.php 프로젝트: jolupeza/wactas
 public function employees()
 {
     return $this->belongsToMany(Employee::getClass(), 'project_employees')->withTimestamps();
 }
예제 #3
0
 public function employees()
 {
     return $this->hasMany(Employee::getClass());
 }