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.

Attachment.php 945B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  5. class Attachment extends Eloquent
  6. {
  7. //
  8. use SoftDeletes;
  9. protected $connection = 'mongodb';
  10. protected $collection = 'attachment_test';
  11. protected $guarded = ['_id'];
  12. protected $hidden = [
  13. 'password', 'remember_token',
  14. ];
  15. public function memo() {
  16. return $this->belongsToMany('App\Model\Module\Memo');
  17. }
  18. public function compound() {
  19. return $this->belongsToMany('App\Model\Module\Compound');
  20. }
  21. public function confidentialfile() {
  22. return $this->belongsToMany('App\Model\Module\ConfidentialFile');
  23. }
  24. public function iteminventory() {
  25. return $this->belongsTo('App\Model\Module\ItemInventory');
  26. }
  27. public function templatenotice() {
  28. return $this->belongsTo('App\Model\Module\TemplateNotice');
  29. }
  30. }