app/Http/Controllers/ArticleController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $articles = Article::paginate(4);
        return view('articles.index',[
            'title'=> 'List Article',
            'articles' => $articles,
        ]);
    }
public function index ( ) { $ articles = Article :: paginate ( 4 ) ; return view ( 'articles.index' , [ 'title' => 'List Article' , 'articles' => $ articles , ] ) ; }
Display a listing of the resource.
Display a listing of the resource .