Yes, you can send meta data without using eloquent resources. You can use the links() method on the paginator instance to get the meta data. For example:
$users=User::has('learner')
->with('learner')
->orderBy('id')
->filter(request()->only('search'))
->paginate()
->withQueryString();
$meta = $users->links();
return Inertia::render('Learner/Index', [
'filters' => request()->all('search'),
'users' => $users->map(function ($user) {
return [
'id' => $user->id,
'reference_id' => $user->reference_id,
'email' => $user->email,
'name' => $user->learner->first_name.' '.$user->learner->second_name.' '.$user->learner->last_name ,
'mobile' => $user->learner->mobile,
'status' => $user->learner->status,
];
}),
'meta' => $meta
]);
The links() method will return an array of meta data, including the labels, active page, and URLs for the pagination links.