relation paginate laravel7
$category = Category::first();
$apps = $category->apps()->paginate(10);
return view('example', compact('category', 'apps'));
Zeevx
$category = Category::first();
$apps = $category->apps()->paginate(10);
return view('example', compact('category', 'apps'));
@foreach ($apps as $app)
{{ $app->id }}
@endforeach
{!! $apps->render() !!}