If you want to merge them into one column in your database do it like described by M Khalid Junaid.
You can also define an accessor to join both numbers
public function getPhoneNumberAttribute(): string
{
return "{$this->phone}, {$this->telephone}";
}
and then you can access it via $model->phone_number
.
This, of course, is only applicable if you want to display them properly in Laravel and does not solve the issue with having them in multiple columns.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…