GetTableQuery in simple resource

how can i use getTableQuery in simple resource?
9 Replies
Dennis Koch
Dennis Koch2y ago
Can't you set it on the ManagePage?
Lambertn33
Lambertn33OP2y ago
Method 'App\Filament\Resources\SubStockRequestResource\Pages\ManageSubStockRequests::getTableQuery()' is not compatible with method 'Filament\Resources\Pages\ManageRecords::getTableQuery()' this is the error i am getting @Dennis Koch
Dan Harrin
Dan Harrin2y ago
read the error you have not used the correct method signature
Lambertn33
Lambertn33OP2y ago
@Dan Harrin Good afternoon I hope you are good today
Lambertn33
Lambertn33OP2y ago
Lambertn33
Lambertn33OP2y ago
after overriding the getTableQuery function the records are empty even though they exist in the DB! when i try to add ->get() i get the error saying: Return value must be of type Illuminate\Database\Eloquent\Builder, Illuminate\Database\Eloquent\Collection returned something I might be missing please?
Dan Harrin
Dan Harrin2y ago
i dont have any ideas if the query had results then it shouldnt show no results theres probably something you are missing that also scopes the query and causes it to have no results
Lambertn33
Lambertn33OP2y ago
It worked @Dan Harrin thank you!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server