-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I'm trying to use your component but I must be missing something. I'm getting a offset error.
Here is the code I have.
...
class InspectionList extends Component
{
use WithPagination;
use LivewireMultiselect\HasSelect;
public $filter = 1;
public ?array $teamFilter = null;
public ?Collection $teams = null;
protected $listeners = ['select'];
public function render()
{
$this->teams = collect([1=> '100 Hr', 2 => 'Annual']);
$this->teamFilter = [1];
return view('livewire.test',['inspections'=> Inspection::where('inspectiontype_id', $this->filter)->orderBy('date_performed','desc')->paginate(10)]);
}
}
...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels