12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
-
- namespace App\Model\Module;
-
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
-
- class ConfidentialFile extends Eloquent
- {
- //
- protected $connection = 'mongodb';
- protected $collection = 'confidential_file_test';
-
- protected $guarded = ['_id'];
-
- public function staff(){
- return $this->belongsTo('App\Model\Staff', 'no_badan', 'penguatkuasa');
- }
-
- public function compound(){
- return $this->hasOne('App\Model\Module\Compound');
- }
-
- public function notice(){
- return $this->hasOne('App\Model\Module\Notice');
- }
-
- public function memo()
- {
- return $this->belongsToMany('App\Model\Module\Memo');
- }
-
- public function history(){
- return $this->belongsToMany('App\Model\Module\History');
- }
-
- public function investigation(){
- return $this->hasMany('App\Model\Module\Investigation');
- }
-
- public function iteminventory(){
- return $this->hasMany('App\Model\Module\ItemInventory');
- }
- }
|