Replies: 1 comment
-
Don't give the filter a dot notated name (second parameter) Also, the filter callback references the table name, and field, not the Eloquent relationship. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Attempting to filter results by date where the date lives in a parent model, but I'm getting this error in the browser console:
livewire.js?id=44144c23:3884 Livewire Entangle Error: Livewire property ['filterComponents.exam.test.date'] cannot be found on component: ['tests-table']
`<?php
namespace App\Livewire;
use App\Models\TestGrade;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Facades\Log;
use Rappasoft\LaravelLivewireTables\DataTableComponent;
use Rappasoft\LaravelLivewireTables\Views\Column;
use Rappasoft\LaravelLivewireTables\Views\Filters\DateRangeFilter;
class TestsTable extends DataTableComponent
{
protected $model = TestGrade::class;
}
`
Beta Was this translation helpful? Give feedback.
All reactions