Skip to content

Commit

Permalink
Reverted the previous commit since the Konekt Address package has a b…
Browse files Browse the repository at this point in the history
…etter solution now
  • Loading branch information
fulopattila122 committed Jun 19, 2023
1 parent fe83157 commit bd1263b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- Changed minimal Enum requirement to v4.1
- Upgraded to Konekt Address, Customer and User modules to v3
- Removed the Vanilo v2 `Framework` namespace compatibility layer
- Fixed the missing `customer` relation from the Address model (Foundation)

## 3.x Series

Expand Down
7 changes: 0 additions & 7 deletions src/Foundation/Models/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,11 @@

namespace Vanilo\Foundation\Models;

use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Konekt\Address\Models\Address as BaseAddress;
use Konekt\Customer\Models\CustomerProxy;
use Vanilo\Contracts\Address as AddressContract;
use Vanilo\Support\Traits\AddressModel;

class Address extends BaseAddress implements AddressContract
{
use AddressModel;

public function customers(): BelongsToMany
{
return $this->belongsToMany(CustomerProxy::modelClass(), 'customer_addresses');
}
}

0 comments on commit bd1263b

Please sign in to comment.