attributes['notes'])){ return json_decode($this->attributes['notes'],true); }else{ return null; } } public function get_express(){ return $this->hasMany(Express::class,'number','number'); } public function get_order(){ return $this->hasOne(Ordertest::class,'id','order_id'); } }