app/Http/Controllers/PostsApiController.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(10);
        return response()->json($articles);
    }
public function index ( ) { $ articles = Article :: paginate ( 10 ) ; return response ( ) -> json ( $ articles ) ; }
Display a listing of the resource.
Display a listing of the resource .