Dashboard sipadu mbip
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

History.php 608B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. class History extends Eloquent
  5. {
  6. //
  7. protected $connection = 'mongodb';
  8. protected $collection = 'history';
  9. protected $guarded = ['_id'];
  10. public function confidentialfile(){
  11. // 1: Referrer Parent, 2: Referer Current Class
  12. return $this->belongsToMany('App\Model\Module\ConfidentialFile');
  13. }
  14. public function subhistory(){
  15. // 1: Referrer Parent, 2: Referer Current Class
  16. return $this->hasMany('App\Model\Module\SubHistory');
  17. }
  18. }