Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit e3445e5

Browse files
committed
Merge branch 'release/v7.3.2'
2 parents 83f095d + 9c4f4e8 commit e3445e5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
This project adheres to [Semantic Versioning](CONTRIBUTING.md).
66

77

8+
## [v7.3.2] - 2024-07-22
9+
- Upgrade vinkla/hashids to v12 (#85)
10+
- Fix rules override (#84)
11+
812
## [v7.3.1] - 2023-08-30
913
- Support new accessarea file-based structure
1014

@@ -323,6 +327,7 @@ This project adheres to [Semantic Versioning](CONTRIBUTING.md).
323327
## v0.0.1 - 2016-12-20
324328
- Tag first release
325329

330+
[v7.3.2]: https://github.com/rinvex/laravel-support/compare/v7.3.1...v7.3.2
326331
[v7.3.1]: https://github.com/rinvex/laravel-support/compare/v7.3.0...v7.3.1
327332
[v7.3.0]: https://github.com/rinvex/laravel-support/compare/v7.2.6...v7.3.0
328333
[v7.2.6]: https://github.com/rinvex/laravel-support/compare/v7.2.5...v7.2.6

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"spatie/laravel-sluggable": "^3.4.0",
4646
"spatie/laravel-schemaless-attributes": "^2.4.0",
4747
"spatie/laravel-translatable": "^6.0.0",
48-
"vinkla/hashids": "^11.0.0",
48+
"vinkla/hashids": "^11.0.0 || ^12.0.0",
4949
"watson/validating": "^8.0.0"
5050
},
5151
"require-dev": {

src/Traits/HashidsTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function unhashId($value)
5858
*/
5959
protected function shouldBeHashed(): bool
6060
{
61-
$accessareas = app('accessareas')->active()->obscured()->keys()->when($this->obscure, fn($collection) => $collection->merge(collect($this->obscure)->intersect(app('accessareas')->active()->keys()))->unique())->toArray();
61+
$accessareas = app('accessareas')->active()->obscured()->keys()->when($this->obscure, fn ($collection) => $collection->merge(collect($this->obscure)->intersect(app('accessareas')->active()->keys()))->unique())->toArray();
6262

6363
return in_array(request()->accessarea(), $accessareas) && in_array($this->getRouteKeyName(), config('cortex.foundation.obscure.hashed_keys'));
6464
}

src/Traits/ValidatingTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trait ValidatingTrait
2121
*/
2222
public function mergeRules(array $rules)
2323
{
24-
$this->rules += $rules;
24+
$this->rules = array_merge($this->rules, $rules);
2525

2626
return $this;
2727
}

0 commit comments

Comments
 (0)