Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

eloquent complex queries

$user = User::find("user_id")->with('clicks')->get();
$clicks = $user->clicks()->count();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #eloquent #complex #queries
ADD COMMENT
Topic
Name
3+8 =