This commit is contained in:
R
2022-09-17 00:51:02 +07:00
parent 300b53942d
commit a9f29cd19d
28 changed files with 1122 additions and 13 deletions

View File

@@ -8,4 +8,28 @@ use Illuminate\Database\Eloquent\Model;
class Address extends Model
{
use HasFactory;
protected $fillable = [
'addressable_type',
'addressable_id',
'use',
'type',
'text',
'line',
'province_id',
'city_id',
'district_id',
'village_id',
'postal_code',
'country',
'lat',
'lng',
'period_start',
'period_end',
];
public function addressable()
{
return $this->morphTo();
}
}