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

ReportFaulty.php 403B

123456789101112131415161718192021
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  5. class ReportFaulty extends Eloquent
  6. {
  7. use SoftDeletes;
  8. //
  9. protected $connection = 'mongodb';
  10. protected $collection = 'report_faulty';
  11. protected $guarded = ['_id'];
  12. public function faulty()
  13. {
  14. return $this->belongsTo('App\Model\Faulty');
  15. }
  16. }