$author = Author::where('id', '=', $authorId)
->where('salt', '=', $authorSalt)
->with(['blogs'=>function($query) use($blog, $blogSalt) {
$query->where('id', $blog)
->where('salt', $blogSalt)
->take(1);
}])
->first();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community