Added class to call the api within laravel