我有一些问题,但我不明白为什么它不起作用。
我有一个Quotation.php模型,例如:
class Quotation extends Model
{
protected $table = 'quotation';
protected $fillable = [
'no_quotation',
'subject',
'to',
'qutation_date',
'expire_date',
'pickup',
'destination',
'via',
'customer',
'address',
'totalcost',
'subtotal',
'tax',
'grandtotal'
];
}
Item.php模型,例如:
class Item extends Model
{
protected $table = 'item';
protected $fillable = [
'id_quotation',
'name',
'qty',
'cost',
'totalcost',
'rate',
'totalrate'
];
}
TermCondition.php模型,如:
class TermCondition extends Model
{
protected $table = 'term_and_condition';
protected $fillable = [
'id_quotation',
'caption'
];
}
眼眸繁星