56 lines
1.2 KiB
PHP
56 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TransactionShipping extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
"transaction_id",
|
|
"uid",
|
|
"tracking_id",
|
|
"waybill_id",
|
|
"company",
|
|
"type",
|
|
"driver_name",
|
|
"driver_phone",
|
|
"driver_photo_url",
|
|
"driver_plate_number",
|
|
"insurance_amount",
|
|
"insurance_fee",
|
|
"weight_total",
|
|
"price",
|
|
"note",
|
|
"status",
|
|
|
|
"origin_address",
|
|
"origin_name",
|
|
"origin_phone",
|
|
"origin_postal_code",
|
|
"origin_latitude",
|
|
"origin_longitude",
|
|
"origin_note",
|
|
|
|
|
|
"destination_address",
|
|
"destination_name",
|
|
"destination_phone",
|
|
"destination_postal_code",
|
|
"destination_latitude",
|
|
"destination_longitude",
|
|
"destination_note",
|
|
|
|
"shipper_name",
|
|
"shipper_phone",
|
|
"shipper_email",
|
|
];
|
|
|
|
public function tracks(){
|
|
return $this->hasMany(TransactionShippingTrack::class,"transaction_shipping_id");
|
|
}
|
|
}
|