In Inertia you can pass an Arrayable object as props, which is useful if you use something like spatie/laravel-data since you don't have to convert the data objects to array yourself. This PR updates this package to also accept Arrayable objects as props.
The modal and dialog methods now accept an array or Arrayable as the second argument.
The Modal class constructor now accepts an array or Arrayable as the second argument.
Added a use statement for Illuminate\Contracts\Support\Arrayable in src/ModalServiceProvider.php to fix a PHPStorm error (not sure if this is necessary).
In Inertia you can pass an
Arrayable
object as props, which is useful if you use something likespatie/laravel-data
since you don't have to convert the data objects to array yourself. This PR updates this package to also acceptArrayable
objects as props.