Skip to content

Commit e5ee6de

Browse files
Fixed di bug when make ip rules.
1 parent d9ac97f commit e5ee6de

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Tất cả lịch sử tiến trình phát triển thư viện
44

5+
# 1.0.4
6+
7+
- Sửa lỗi DI khi khởi tạo ip rules.
8+
59
# 1.0.3
610

711
- Sửa lỗi lazy load service provider đè lên thư viện.

src/ServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ protected function getCallableRules(): array
5050
'mobile_vn' => $this->app->make(MobileVN::class),
5151
'id_vn' => $this->app->make(IdVN::class),
5252
'ip_vn' => $this->app->make(IpVN::class),
53-
'ipv4_vn' => $this->app->make(IpVN::class, [IpVN::IPV4]),
54-
'ipv6_vn' => $this->app->make(IpVN::class, [IpVN::IPV6]),
53+
'ipv4_vn' => $this->app->make(IpVN::class, ['version' => IpVN::IPV4]),
54+
'ipv6_vn' => $this->app->make(IpVN::class, ['version' => IpVN::IPV6]),
5555
];
5656
}
5757
}

0 commit comments

Comments
 (0)