12345678910111213141516171819202122232425262728293031 |
- <?php
-
- namespace App\Model\Module;
-
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
- use Jenssegers\Mongodb\Eloquent\SoftDeletes;
-
- class CompoundInvestigation extends Eloquent
- {
- //
- use SoftDeletes;
-
- protected $connection = 'mongodb';
- protected $collection = 'compound_investigation';
-
- protected $guarded = ['_id'];
-
- public function attachment(){
- return $this->hasMany('App\Model\Module\Attachment');
- }
-
- public function staff()
- {
- return $this->belongsTo('App\Model\Staff','no_badan','dikeluarkan');
- }
-
- public function compound()
- {
- return $this->belongsTo('App\Model\Module\Compound');
- }
- }
|