DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+3 =
Submit