| 123456789101112131415161718192021222324 |
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- use App\Traits\LogModelChanging;
- class OwnerPriceDirectLogisticCar extends Model
- {
- use LogModelChanging;
- protected $fillable = [
- "owner_price_direct_logistic_id", //直发车计费ID
- "car_type_id", //车型ID
- "base_fee", //起步费
- "additional_fee", //续费(元/KM)
- ];
- public function carType()
- { //车型
- return $this->hasOne(CarType::class,"id","car_type_id");
- }
- }
|