In your model define the relation between Post and User
class Post extends Eloquent{
public function author(){
return $this->belongsTo("User");
}
}
Where you need :
Post::find($postid)->author->full_name;
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community