Make customer addresses editable.

This commit is contained in:
2025-01-10 16:24:01 +01:00
parent 39f4acc1fc
commit 2b3c93a8b6
13 changed files with 213 additions and 15 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
class Address extends Model
@@ -26,4 +27,12 @@ class Address extends Model
'country',
'zip',
];
/**
* Return the customer having the address.
*/
public function customer(): BelongsTo
{
return $this->belongsTo(Customer::class);
}
}