interim fix for drop downs, BROKEN FIX, interinm fix

This commit is contained in:
Mark Gregory
2026-07-07 12:38:13 +01:00
parent a12372963a
commit 12c1470319
10 changed files with 251 additions and 83 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace Modules\Company\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use Modules\Countries\Models\Country;
class CompanyAddress extends Model
{
protected $guarded = [];
protected $casts = [
'is_primary' => 'boolean',
];
public function addressable(): MorphTo
{
return $this->morphTo();
}
public function country(): BelongsTo
{
return $this->belongsTo(Country::class);
}
}