what is error when i want to fetching data with paginate(10) the Vue js dosn't do it but when i use paginate(5) it working good this code of Controller with relationship in model files and the response status 200 ok working
$results = Posts::with(['comment'])
->orderBy('created_at', 'desc')
->paginate(5);
return response()
->json(['results' => $results]);
this code is actually worked for me but i want to make 10 results in my page Like this
$results = Posts::with(['comment'])
->orderBy('created_at', 'desc')
->paginate(10);
return response()
->json(['results' => $results]);
with ->paginate(10)
or > 5 not giving any data and get error on console with Vue js but the response is ok 200
i make like this application without using vujs i used laravel from 3 years , sorry dd()
and postman and all things used is done giving me the object json named results { 0{} 1{} 2{} }
all working