Laravel, jak pobrać użytkownika z modelu użytkownika na podstawie identyfikatora z postu
class Post extends Eloquent {
protected $table = "posts";
public function user(){
return $this->belongsTo("User");
}
}
Beautiful Buzzard