OwnerPriceDirectLogistic.php 419 B

123456789101112131415161718
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. class OwnerPriceDirectLogistic extends Model
  5. {
  6. protected $fillable = [
  7. "name", //名称
  8. "base_km" //起步公里数
  9. ];
  10. public function ownerPriceDirectLogisticCars()
  11. { //直发车计费对应车型费
  12. return $this->hasMany(OwnerPriceDirectLogisticCar::class,"owner_price_direct_logistic_id","id");
  13. }
  14. }