Dashboard sipadu mbip
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ConfidentialFile.php 910B

123456789101112131415161718192021222324252627282930313233343536373839
  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';
  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 memo()
  17. {
  18. return $this->belongsToMany('App\Model\Module\Memo');
  19. }
  20. public function history(){
  21. return $this->belongsToMany('App\Model\Module\History');
  22. }
  23. public function investigation(){
  24. return $this->hasMany('App\Model\Module\Investigation');
  25. }
  26. public function iteminventory(){
  27. return $this->hasMany('App\Model\Module\ItemInventory');
  28. }
  29. }