jonassiewertsen / statamic-livewire

A Laravel Livewire integration for Statamics antlers engine
83 stars 14 forks source link

Add more synthesizers #62

Closed aerni closed 2 months ago

aerni commented 2 months ago

This PR builds on top of the existing synthesizers and adds support for Statamic\Fields\Value as a public property.

public Value $value;

public function mount()
{
    $this->value = Entry::all()->first()->augmentedValue('bard');
}

I've also added synthesizers for Statamic\Fields\Fieldtype and Statamic\Fields\Field as those are necessary to properly dehydrate and hydrate a Statamic\Fields\Value.

This PR should close #58. Maybe @edalzell can chip in if this PR solves his needs.