Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }