Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

paginate relationship laravel7

$category = Category::first();
$apps = $category->apps()->paginate(10);
return view('example', compact('category', 'apps'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #paginate #relationship
ADD COMMENT
Topic
Name
5+5 =