title: Laravel livewire pagination error on mount
body: <p>im trying to retrive the users on page mount and paginate them using the following code:</p>
  <pre class="lang-php prettyprint-override"><code>public function mount()
  {
       $this-&gt;users = User::where('register_completed', '1')-&gt;paginate(16); 
  }
  </code></pre>
  <p>but im getting this error:</p>
  <pre><code>Livewire component's [user-search] public property [users] must be of type: [numeric, string, array, null, or boolean]. Only protected or private properties can be set as other types because JavaScript doesn't need to access them.
  </code></pre>
  <p>The plan is to load all of the users using <code>mount</code> on page load and then let the user filter them using a filter form with multiple criteria. the paginator works using this code:</p>
  <pre class="lang-php prettyprint-override"><code>public function render()
  {
      return view('livewire.user-search', [
              'users' =&gt; User::where('register_completed', '1')-&gt;paginate(16),
          ])
              -&gt;extends('layouts.app')
              -&gt;section('content');
  }
  </code></pre>
  <p>but I need to use a specific function to filter the results based on the selected criteria. also, the search is not real-time and there is a button to call the search filter function.
  not sure why pagination only works when passed through the <code>render</code> method.
  also the <code>$users</code> is a public property to access it from the view.</p>