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 1919
2020 /**
2121 * Specify the CloudFront Distribution ID.
22- * Example format: EBCYQAQALNSKL.
22+ * Example format: EBCYQAQALNSKL
2323 */
2424 'distribution_id ' => env ('AWS_CLOUDFRONT_DISTRIBUTION_ID ' ),
2525
Original file line number Diff line number Diff line change @@ -15,14 +15,17 @@ class InvalidateCache implements ShouldQueue
1515
1616 private $ paths ;
1717
18+ private $ distributionId ;
19+
1820 /**
1921 * Create a new job instance.
2022 *
2123 * @param string|array $paths
2224 */
23- public function __construct ($ paths )
25+ public function __construct ($ paths, $ distributionId = null )
2426 {
2527 $ this ->paths = $ paths ;
28+ $ this ->distributionId = $ distributionId ;
2629 }
2730
2831 /**
@@ -32,6 +35,6 @@ public function __construct($paths)
3235 */
3336 public function handle ()
3437 {
35- CloudFront::invalidate ($ this ->paths );
38+ CloudFront::invalidate ($ this ->paths , $ this -> distributionId );
3639 }
3740}
You can’t perform that action at this time.
0 commit comments