Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bashgeek committed Dec 8, 2023
1 parent 148598e commit d633d81
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@

use Laravel\Nova\Fields\Field;
use Laravel\Nova\Fields\SupportsDependentFields;
use Laravel\Nova\Fields\AsHTML;
use Laravel\Nova\Fields\Copyable;
use Laravel\Nova\Http\Requests\NovaRequest;

class Items extends Field
{
use AsHTML;
use Copyable;

use SupportsDependentFields;

public $items = [];
Expand Down Expand Up @@ -72,7 +77,10 @@ public function resolve($resource, $attribute = null)

public function jsonSerialize(): array
{
return parent::jsonSerialize();
return array_merge(parent::jsonSerialize(), [
'asHtml' => $this->asHtml,
'copyable' => $this->copyable,
]);
}

public function rules($rules)
Expand Down

0 comments on commit d633d81

Please sign in to comment.