eifrige Lastbeziehungen auf einem vorhandenen Modell in Route Laravel

Route::get('categories/{category:slug}', function(Category $category) {
    return view('posts', [
        'posts' => $category->posts->load(['category', 'author'])
    ]);
});
DJ Ultimate Disco Party