コード例 #1
0
ファイル: ProjectEmployee.php プロジェクト: jolupeza/wactas
 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
ファイル: Customer.php プロジェクト: jolupeza/wactas
 public function employees()
 {
     return $this->hasMany(Employee::getClass());
 }