Dashboard sipadu mbip
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Faulty.php 539B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  5. class Faulty extends Eloquent
  6. {
  7. use SoftDeletes;
  8. //
  9. protected $connection = 'mongodb';
  10. protected $collection = 'section_faulty';
  11. protected $guarded = ['_id'];
  12. public function deedlaw()
  13. {
  14. return $this->belongsTo('App\Model\Module\DeedLaw','deed_law_id','_id');
  15. }
  16. public function department()
  17. {
  18. return $this->belongsToMany('App\Model\Module\Department');
  19. }
  20. }