123456789101112131415161718192021 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class Goodtest extends Model{
- protected $table='goods_all';
- // public function goods_spec(){
- // return $this->hasMany(GoodSpec::class,'goods_id');
- // }
- public function get_order(){
- return $this->belongsTo(OrderDetail::class,'goods_id','id');
- }
- public function getPrice(){
- }
- }
|