Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get count of relationship table laravel

Category::where('parent_id', 0)->withCount('articles')->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #relationship #table #laravel
ADD COMMENT
Topic
Name
7+3 =