123456789101112131415161718192021222324 |
- <?php
-
- namespace App\Model\Module;
-
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
-
- class History extends Eloquent
- {
- //
- protected $connection = 'mongodb';
- protected $collection = 'history_test';
-
- protected $guarded = ['_id'];
-
- public function confidentialfile(){
- // 1: Referrer Parent, 2: Referer Current Class
- return $this->belongsToMany('App\Model\Module\ConfidentialFile');
- }
-
- public function subhistory(){
- // 1: Referrer Parent, 2: Referer Current Class
- return $this->hasMany('App\Model\Module\SubHistory');
- }
- }
|