File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 88
99namespace PHPViet \Laravel \Validation ;
1010
11- use PHPViet \Validation \Rules \IdVN ;
11+ use PHPViet \Laravel \ Validation \Rules \IdVN ;
1212use PHPViet \Laravel \Validation \Rules \IpVN ;
1313use PHPViet \Laravel \Validation \Rules \MobileVN ;
1414use PHPViet \Laravel \Validation \Rules \LandLineVN ;
@@ -34,12 +34,12 @@ public function boot(): void
3434 protected function getCallableRules (): array
3535 {
3636 return [
37- 'land_line_vn ' => new LandLineVN ( ),
38- 'mobile_vn ' => new MobileVN ( ),
39- 'id_vn ' => new IdVN ( ),
40- 'ip_vn ' => new IpVN ( ),
41- 'ipv4_vn ' => new IpVN (IpVN::IPV4 ),
42- 'ipv6_vn ' => new IpVN (IpVN::IPV6 ),
37+ 'land_line_vn ' => $ this -> app -> make (LandLineVN::class ),
38+ 'mobile_vn ' => $ this -> app -> make (MobileVN::class ),
39+ 'id_vn ' => $ this -> app -> make (IdVN::class ),
40+ 'ip_vn ' => $ this -> app -> make (IpVN::class ),
41+ 'ipv4_vn ' => $ this -> app -> make (IpVN::class, [IpVN:: IPV4 ] ),
42+ 'ipv6_vn ' => $ this -> app -> make (IpVN::class, [IpVN:: IPV6 ])
4343 ];
4444 }
4545}
You can’t perform that action at this time.
0 commit comments