Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 71726ff

Browse files
Fix secure_url() breaking changes (#56885)
1 parent 8c6c585 commit 71726ff

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

src/Illuminate/Foundation/helpers.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,10 +890,11 @@ function secure_asset($path): string
890890
*
891891
* @param string $path
892892
* @param mixed $parameters
893+
* @return string
893894
*/
894-
function secure_url($path, $parameters = []): string
895+
function secure_url($path, $parameters = [])
895896
{
896-
return url()->secure($path, $parameters);
897+
return url($path, $parameters, true);
897898
}
898899
}
899900

tests/Illuminate/Tests/Foundation/HelpersTest.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)