Level 50
It's a brand new method and your Inertia version isn't up to date. You need to update the Composer and NPM packages.
composer update inertiajs/inertia-laravel
// Replace with the adapter you're using.
npm update @inertiajs/react
1 like
Hi, I'm trying to apply the Inertia's infinite scroll feature and I've set up the index in a Controller like that:
public function index(): Response
{
return Inertia::scroll('calls', [
'calls' => Inertia::scroll(
Call::orderBy('date', 'desc')
->orderBy('time', 'desc')
->paginate()),
'operators' => Operator::all()
]);
}
But I receive the error 'Method Inertia\ResponseFactory::scroll does not exist.'
Googling this doesn't seem to work. I will appreciate any help.
Please or to participate in this conversation.