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 8
8
9
9
namespace PHPViet \Laravel \Validation ;
10
10
11
- use PHPViet \Validation \Rules \IdVN ;
11
+ use PHPViet \Laravel \ Validation \Rules \IdVN ;
12
12
use PHPViet \Laravel \Validation \Rules \IpVN ;
13
13
use PHPViet \Laravel \Validation \Rules \MobileVN ;
14
14
use PHPViet \Laravel \Validation \Rules \LandLineVN ;
@@ -34,12 +34,12 @@ public function boot(): void
34
34
protected function getCallableRules (): array
35
35
{
36
36
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 ])
43
43
];
44
44
}
45
45
}
You can’t perform that action at this time.
0 commit comments