Laravel: Load more data from controller into view
问题 i would like to ask how can i display more data by using js or ajax and call Controller displaying the result into my view. Until now i 'm displaying 8 posts with limit(8) for the first time. Then i 'm using ajax to call the controller and bring each time more 8 posts. The problem i 'm facing is that the posts are the same each time i call the controller or the ajax. This is my PostsController class PostsController extends Controller { public function index(Request $request) { $posts = Post: