Table Widget not showing summary

What I am trying to do: In every resource, by default, the table is showing like Showing 1 to 10 of 37 results . Now, using table widget in Dashboard, it's not showing. What I did: I tried experimenting ->paginated() and none of them works. Code:
class EnrolledSurvey extends BaseWidget
{
use InteractsWithPageFilters;

public function table(Table $table): Table
{

$query = Survey::where('survey_type', 'Accepted');


return $table
->query($query)
->columns([

])
->headerActions([
->actions([
]);
}
}
class EnrolledSurvey extends BaseWidget
{
use InteractsWithPageFilters;

public function table(Table $table): Table
{

$query = Survey::where('survey_type', 'Accepted');


return $table
->query($query)
->columns([

])
->headerActions([
->actions([
]);
}
}
1 Reply
LeandroFerreira
add use CanPaginateRecords in the table widget

Did you find this page helpful?