[8.x] fix(helpers): add back deprecated public_mix and public_url functions (#2208)

fix(helpers): add back deprecated public_mix and public_url functions

Co-authored-by: Nabeel S. <99736+nabeelio@users.noreply.github.com>
This commit is contained in:
Arthur Parienté 2026-05-12 23:35:02 +02:00 committed by GitHub
parent 7490e72523
commit 80f90a1c46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -235,6 +235,27 @@ if (!function_exists('public_asset')) {
} }
} }
if (!function_exists('public_mix')) {
#[Deprecated('use asset() instead')]
function public_mix($path, array $parameters = []): string
{
return public_asset($path, $parameters);
}
}
/**
* Wrap a call to url() and append the public folder before it
*/
if (!function_exists('public_url')) {
#[Deprecated('use url() instead')]
function public_url($path, array $parameters = []): string
{
$path = str_replace('//', '/', $path);
return url($path, $parameters);
}
}
/* /*
* Show a date/time in the proper timezone for a user * Show a date/time in the proper timezone for a user
*/ */