Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #358
    dan
    Participant

    Livewire component:

    public $users;

    public function mount(Collection $users) {
    this – > users = $users
    }

    #359

    The error is pretty much a description of what the problem is.

    You are setting the public property as a collection. You can only set public properties in livewire as numeric, string, array null or boolean

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.