12345678910111213141516171819202122232425 |
- <?php
-
- namespace App\Model\Module;
-
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
- use Jenssegers\Mongodb\Eloquent\SoftDeletes;
-
- class LetterNotice extends Eloquent
- {
- //
- use SoftDeletes;
-
- protected $connection = 'mongodb';
- protected $collection = 'letter_notice';
-
- protected $guarded = ['_id'];
-
- public function compound() {
- return $this->belongsToMany('App\Model\Module\Compound');
- }
-
- public function attachment() {
- return $this->hasMany('App\Model\Module\Attachment');
- }
- }
|