123456789101112131415161718192021222324252627282930313233 |
- <?php
-
- namespace App\Model\Module;
-
- use Jenssegers\Mongodb\Eloquent\Model as Eloquent;
- use Jenssegers\Mongodb\Eloquent\SoftDeletes;
-
- class Barcode extends Eloquent
- {
- //
- use SoftDeletes;
-
- protected $connection = 'mongodb';
- protected $collection = 'barcode';
-
- protected $guarded = ['_id'];
-
- 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->belongsToMany('App\Model\Module\ItemInventory');
- }
- }
|