Dashboard sipadu mbip
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

LetterNotice.php 560B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace App\Model\Module;
  3. use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
  4. use Jenssegers\Mongodb\Eloquent\SoftDeletes;
  5. class LetterNotice extends Eloquent
  6. {
  7. //
  8. use SoftDeletes;
  9. protected $connection = 'mongodb';
  10. protected $collection = 'letter_notice';
  11. protected $guarded = ['_id'];
  12. public function compound() {
  13. return $this->belongsToMany('App\Model\Module\Compound');
  14. }
  15. public function attachment() {
  16. return $this->hasMany('App\Model\Module\Attachment');
  17. }
  18. }