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