Answer the question
In order to leave comments, you need to log in
Laravel exists in sub select, or how to get sql with substituted parameters?
$sql = Post::where('user_id', $user->id)->toSql();
$query->addSubSelect('exists_post', "select exists($sql)");
Answer the question
In order to leave comments, you need to log in
If you want to make it right, then you need:
1) Make it right
2) Done!
Style checkboxes with CSS.
Expand lists with jQueryslideToggle()
If you understand the question correctly, then look here https://laravel.com/docs/5.7/queries#where-exists-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question