public function show(\App\Post $post)
    {
        $post->load('comments');
        return view('posts.show', compact('post'));
    }
also possible to load relation on every model instance with
protected $with = ['comments'];
by გიორგი უზნაძე
4 years ago
Laravel
Model
0
Pro tip: use ```triple backticks around text``` to write in code fences