Skip to content

Commit

Permalink
Add LabeledValue
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnsn committed Nov 1, 2024
1 parent ce21344 commit 34d91b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/View/Blade/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Statamic\View\Blade;

use Statamic\Fields\LabeledValue;
use Statamic\Fields\Value;
use Statamic\Fields\Values;
use Statamic\Modifiers\Modify;
Expand All @@ -11,7 +12,7 @@

function value(mixed $value): mixed
{
if ($value instanceof Value) {
if ($value instanceof Value || $value instanceof LabeledValue) {
$value = $value->value();
} elseif ($value instanceof Values) {
$value = $value->all();
Expand Down

0 comments on commit 34d91b2

Please sign in to comment.