app/Http/Controllers/ArticleController class ArticleController extends Controller { public function index() { $articles = Perfume::latest()->paginate(10); return view('index', ['articles' => $articles]); } } /resources/views/index.blade.php @foreach ($articles as $article) a href='{{ route("article.show", ["id" => $article->id]) }}'> {{ $article->content }} /a> @endforeach {{ $articles->links() }}