From 80f90a1c46541f6f5001056daea6869a77ae45d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arthur=20Parient=C3=A9?= <41431456+arthurpar06@users.noreply.github.com> Date: Tue, 12 May 2026 23:35:02 +0200 Subject: [PATCH] [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> --- app/helpers.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/helpers.php b/app/helpers.php index 0c1f34e0..f8c7b337 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -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 */