Source View more articles and date fix

This commit is contained in:
2020-08-21 02:33:35 +05:00
parent be04822ce3
commit 660eda24cf
15 changed files with 251 additions and 94 deletions

View File

@@ -16,8 +16,7 @@ class SourcesController extends Controller
public function show(Source $source)
{
return view('sources.show', [
'source' => $source,
'articles' => $source->articles()->with('source')->latest('published_date')->paginate(20)
'source' => $source
]);
}
}