File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2458,7 +2458,7 @@ public function getBaseUrl(): string
2458
2458
* @param string $baseUrl Example http://www.web.com/folder https://www.web.com/folder/anotherfolder
2459
2459
* @return BladeOne
2460
2460
*/
2461
- public function setBaseUrl ($ baseUrl ): BladeOne
2461
+ public function setBaseUrl (string $ baseUrl ): BladeOne
2462
2462
{
2463
2463
$ this ->baseUrl = \rtrim ($ baseUrl , '/ ' ); // base with the url trimmed
2464
2464
$ this ->baseDomain = @parse_url ($ this ->baseUrl )['host ' ];
@@ -2478,6 +2478,22 @@ public function setBaseUrl($baseUrl): BladeOne
2478
2478
return $ this ;
2479
2479
}
2480
2480
2481
+ /**
2482
+ * It sets a CDN Url used by @assetcdn("someresource.jpg")<br>
2483
+ * **Example:**
2484
+ * ```
2485
+ * $this->setCDNUrl('http://domain.dom/myblog');
2486
+ * ```
2487
+ *
2488
+ * @param string $cdnurl the full path url without the trailing slash
2489
+ * @return $this
2490
+ */
2491
+ public function setCDNUrl (string $ cdnurl ): BladeOne
2492
+ {
2493
+ $ this ->cdnUrl = $ cdnurl ;
2494
+ return $ this ;
2495
+ }
2496
+
2481
2497
/**
2482
2498
* It gets the full current url calculated with the information sends by the user.<br>
2483
2499
* **Note:** If we set baseurl, then it always uses the baseurl as domain (it's safe).<br>
You can’t perform that action at this time.
0 commit comments