Framework Update

This commit is contained in:
2024-01-31 22:15:08 +08:00
parent b5ff5e8b5f
commit 20678a6a0c
1459 changed files with 25954 additions and 16153 deletions
+5
View File
@@ -2,6 +2,7 @@
namespace Illuminate\Support;
use BackedEnum;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\Support\Jsonable;
@@ -69,6 +70,10 @@ class Js implements Htmlable
return $data->toHtml();
}
if ($data instanceof BackedEnum) {
$data = $data->value;
}
$json = $this->jsonEncode($data, $flags, $depth);
if (is_string($data)) {