123456789101112131415161718192021222324252627282930313233 |
- <?php
-
- namespace App\Model\Module;
-
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
- use Jenssegers\Mongodb\Eloquent\SoftDeletes;
-
- class Memo extends Eloquent
- {
- //
- use SoftDeletes;
-
- protected $connection = 'mongodb';
- protected $collection = 'memo';
-
- protected $guarded = ['_id'];
-
- protected $hidden = [
- 'password', 'remember_token',
- ];
-
- public function compound() {
- return $this->belongsToMany('App\Model\Module\Compound');
- }
-
- public function confidentialfile() {
- return $this->belongsToMany('App\Model\Module\ConfidentialFile');
- }
-
- public function attachment() {
- return $this->hasMany('App\Model\Module\Attachment');
- }
- }
|