Skip to content

Commit

Permalink
Merge pull request #15 from envor/main
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
inmanturbo authored Feb 22, 2024
2 parents 53f11b0 + 9fc0dbb commit 150a329
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to `platform` will be documented in this file.

## v1.3.9 - 2024-02-22

### What's Changed

* add select component by @inmanturbo in https://github.com/envor/platform/pull/14

**Full Changelog**: https://github.com/envor/platform/compare/v1.3.8...v1.3.9

## v1.3.8 - 2024-02-21

### What's Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ php artisan vendor:publish --tag='platform-migrations'
```

```bash
php artisan migrate
php artisan migrate --path=database/migrations/platform
```

2. Add `\Envor\Platform\HasLandingPage` trait to your model.
Expand Down
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ parameters:

-
message: "#^Access to an undefined property Envor\\\\Platform\\\\Tests\\\\Fixtures\\\\TestModel\\:\\:\\$name\\.$#"
count: 2
count: 1
path: tests/Fixtures/TestModel.php

-
Expand Down
5 changes: 0 additions & 5 deletions resources/views/livewire/update-contact-info-form.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php
use App\Models\Contact;
use Inmanturbo\B2bSaas\AddressData;
use Inmanturbo\B2bSaas\ContactData;
use Illuminate\Validation\Rule;
use function Livewire\Volt\{state, mount};
state([
Expand Down
6 changes: 3 additions & 3 deletions src/Concerns/HasContactData.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ public function getContactData($attributes): ?ContactData
);

return new ContactData(
name: $companyData['name'] ?? $this->name,
name: $companyData['name'] ?? $attributes['name'] ?? null,
landingPage: $companyData['landingPage'] ?? null,
address: $address,
logoUrl: $this->profile_photo_url ?? config('platform.logo_path'),
logoPath: $this->profile_photo_path ?? config('platform.empty_logo_path'),
logoUrl: null,
logoPath: null,
phone: $companyData['phone'] ?? config('platform.empty_phone'),
fax: $companyData['fax'] ?? config('platform.empty_phone'),
email: $companyData['email'] ?? null,
Expand Down

0 comments on commit 150a329

Please sign in to comment.