📅  最后修改于: 2022-03-11 14:53:45.380000             🧑  作者: Mango
class Post extends Eloquent {
protected $table = "posts";
public function user(){
return $this->belongsTo("User");
}
}