Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

child data retrive without timestamp laravel

$runs = Run::whereHas('times', function ($builder) use ($user) { 
        $query->where('user_id', $user->id);
    })->with(['times' => function ($query) use ($user) {
        $query->where('user_id', $user->id);
    }])->get();
 
PREVIOUS NEXT
Tagged: #child #data #retrive #timestamp #laravel
ADD COMMENT
Topic
Name
4+5 =