Radio

->options($options)

  • A list or flat key => value based Array, Collection or Closure.

  • OBSERVE: if you use a callable, it will be executed on EVERY re-render of the component! Maybe you should consider setting the $options in mount() instead?

  • You can use a component method that returns an array; ->options($this->someMethod())

Last updated