app/Http/Controllers/ArticleController.php
/**
     * Show all articles.
     *
     * @return Response
     */
Show all articles.
@return Response
Show all articles . @return Response
public function index()
    {
        $articles = Article::query()->paginate(5);
        return view('article.index', [
            'articles' => $articles,
        ]);
    }
public function index ( ) { $ articles = Article :: query ( ) -> paginate ( 5 ) ; return view ( 'article.index' , [ 'articles' => $ articles , ] ) ; }
Show all articles.
Show all articles .