a simple api with json responses using mongodb and laravel framework