12345678910111213141516171819202122232425262728293031 |
- <?php
-
- namespace App\Model\Module;
-
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
- use Jenssegers\Mongodb\Eloquent\SoftDeletes;
-
- class ItemInventory extends Eloquent
- {
- use SoftDeletes;
- //
- protected $connection = 'mongodb';
- protected $collection = 'inventory';
-
- protected $guarded = ['_id'];
-
- public function confidentialfile()
- {
- return $this->belongsTo('App\Model\Module\Inventory');
- }
-
- public function attachment()
- {
- return $this->hasMany('App\Model\Module\Attachment');
- }
-
- public function barcode()
- {
- return $this->hasMany('App\Model\Module\Barcode');
- }
- }
|