GetTableQuery in simple resource

how can i use getTableQuery in simple resource?
9 Replies
Dennis Koch
Dennis Koch15mo ago
Can't you set it on the ManagePage?
Lambertn33
Lambertn3315mo 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 Harrin15mo ago
read the error you have not used the correct method signature
Lambertn33
Lambertn3315mo ago
@Dan Harrin Good afternoon I hope you are good today
Lambertn33
Lambertn3315mo ago
Lambertn33
Lambertn3315mo 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 Harrin15mo 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
Lambertn3315mo ago
It worked @Dan Harrin thank you!
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server
More Posts