In the documentation we see a way to set data via:
However is there a way to set multiple items at once? I know we can use a loop here but would like to know if there's a better way.
$entry->set('data', ['field1' => 'value1', 'field2' => 'value2'])
Just like what the
make method does:
$entry = Entry::make()
->data(['title' => 'About us', 'subtitle' => 'We are awesome'])