| 12345678910111213141516171819202122232425 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class Package extends Model
- {
- protected $fillable=[
- 'logistic_number','type','weight','length','width','height','owner_id','paper_box_id',
- 'measuring_machine_id','recipient','status'
- ];
- public function owner(){
- return $this->belongsTo('App\Owner','owner_id','id');
- }
- public function paperBox(){
- return $this->belongsTo('App\paperBox','paper_box_id','id');
- }
- public function measuringMachine(){
- return $this->belongsTo('App\measuringMachine','measuring_machine_id','id');
- }
- }
|