why am I getting null results?Please give me a solution : User Table (users):
id,email,password

Post table (posts) :
id,user_id,title,body



//here i am using Post Model 

My User Model contains:

public function posts(){
  
return $this->hasOne('App\Post');


}