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.

ConfidentialFile.php 962B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. class ConfidentialFile extends Eloquent
  5. {
  6. //
  7. protected $connection = 'mongodb';
  8. protected $collection = 'confidential_file_test';
  9. protected $guarded = ['_id'];
  10. public function staff(){
  11. return $this->belongsTo('App\Model\Staff', 'no_badan', 'penguatkuasa');
  12. }
  13. public function compound(){
  14. return $this->hasOne('App\Model\Module\Compound');
  15. }
  16. public function notice(){
  17. return $this->hasOne('App\Model\Module\Notice');
  18. }
  19. public function memo()
  20. {
  21. return $this->belongsToMany('App\Model\Module\Memo');
  22. }
  23. public function history(){
  24. return $this->belongsToMany('App\Model\Module\History');
  25. }
  26. public function investigation(){
  27. return $this->hasMany('App\Model\Module\Investigation');
  28. }
  29. public function iteminventory(){
  30. return $this->hasMany('App\Model\Module\ItemInventory');
  31. }
  32. }