{{ thread.title }}

{{ locked_reason }} لاراول

@netwons {{ experience | farsi }} تجربه آخرین فعالیت ١ ماه پیش

User::has('posts')->get();

$users = User::with('posts')->get();

$users = User::whereHas('posts', function($q){
$q->where('created_at', '>=', 'q');
})->get();

User::to('posts')->get();

کار has,wherehas,with,toچیه؟ کار toarray()چیه؟