Dashboard sipadu mbip
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

CompoundInvestigation.php 690B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  5. class CompoundInvestigation extends Eloquent
  6. {
  7. //
  8. use SoftDeletes;
  9. protected $connection = 'mongodb';
  10. protected $collection = 'compound_investigation';
  11. protected $guarded = ['_id'];
  12. public function attachment(){
  13. return $this->hasMany('App\Model\Module\Attachment');
  14. }
  15. public function staff()
  16. {
  17. return $this->belongsTo('App\Model\Staff','no_badan','dikeluarkan');
  18. }
  19. public function compound()
  20. {
  21. return $this->belongsTo('App\Model\Module\Compound');
  22. }
  23. }