📜  laravel 关系查找 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:34.146000             🧑  作者: Mango

代码示例10
use App\Models\Comment;

$comment = Comment::find(1);

return $comment->post->title;