<?php

class DefaultController extends BaseController {

	public function index()
	{
		return View::make('index');
	}

	public function load_content()
	{
		$ids = (Input::has('ids') ? Input::get('ids') : [0]);

		return Response::json(Photo::whereNotIn('id', $ids)->take(5)->get());
	}

}

<?php

class DefaultController extends BaseController {

	public function index()
	{
		return View::make('index');
	}

	public function load_content()
	{
		$ids = (Input::has('ids') ? Input::get('ids') : [0]);

		return Response::json(Photo::whereNotIn('id', $ids)->take(1)->get());
	}

}

Load 1 image at a time
Load 1 image at a time
