79142284

Date: 2024-10-30 18:01:37
Score: 0.5
Natty:
Report link

to find posts by email

$post = Post::where('phone',$request->iqama_no)->first();

find comments

$comments = Comments::where('post_id', $post->id)->get();

there's better way , but you have to include how you implemented the model to make sure I gave you the correct answer

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: amr degheidy