File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
/**
21
21
* Specify the CloudFront Distribution ID.
22
- * Example format: EBCYQAQALNSKL.
22
+ * Example format: EBCYQAQALNSKL
23
23
*/
24
24
'distribution_id ' => env ('AWS_CLOUDFRONT_DISTRIBUTION_ID ' ),
25
25
Original file line number Diff line number Diff line change @@ -15,14 +15,17 @@ class InvalidateCache implements ShouldQueue
15
15
16
16
private $ paths ;
17
17
18
+ private $ distributionId ;
19
+
18
20
/**
19
21
* Create a new job instance.
20
22
*
21
23
* @param string|array $paths
22
24
*/
23
- public function __construct ($ paths )
25
+ public function __construct ($ paths, $ distributionId = null )
24
26
{
25
27
$ this ->paths = $ paths ;
28
+ $ this ->distributionId = $ distributionId ;
26
29
}
27
30
28
31
/**
@@ -32,6 +35,6 @@ public function __construct($paths)
32
35
*/
33
36
public function handle ()
34
37
{
35
- CloudFront::invalidate ($ this ->paths );
38
+ CloudFront::invalidate ($ this ->paths , $ this -> distributionId );
36
39
}
37
40
}
You can’t perform that action at this time.
0 commit comments