fireenginered / smartystreets-laravel Goto Github PK
View Code? Open in Web Editor NEWLaravel (PHP) SDK for using SmartyStreets geocoding.
License: GNU General Public License v2.0
Laravel (PHP) SDK for using SmartyStreets geocoding.
License: GNU General Public License v2.0
Packagist.org documentation says the name of the service provider is this:
'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsLaravelServiceProvider'
It should be this:
'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider'
(no "Laravel" in the class name)
EDIT: I see that the redme.md on github says the same thing.
at Application->Laravel\Lumen{closure}('2', 'Invalid argument supplied for foreach()', '/home/vagrant/Code/vendor/fireenginered/smartystreets-laravel/src/SmartyStreetsService.php', '79', array('inputIndex' => '0', 'candidates' => array())) in SmartyStreetsService.php line 79
at SmartyStreetsService->addressGetCandidates('0') in SmartyStreetsService.php line 29
at SmartyStreetsService->addressQuickVerify(array('street' => '4900 W Lemon St', 'city' => 'Tampa', 'state' => 'FL')) in Facade.php line 214
at Facade::__callStatic('addressQuickVerify', array(array('street' => '4900 W Lemon St', 'city' => 'Tampa', 'state' => 'FL'))) in OrderController.php line 121
at SmartyStreetsFacade::addressQuickVerify(array('street' => '4900 W Lemon St', 'city' => 'Tampa', 'state' => 'FL')) in OrderController.php line 121
Could this be specific to Lumen? Have you ever encountered this?
Nevermind, I realized laravel is loading it as a service provider, thus if you make 10 requests, it's sending 10 addresses in 1 request, but the package only ever returns the [0] index element.
Also $reqeust is spelled incorrectly at the top of your class, should be '$request'
Hi team,
i want to use this on my laravel 10 project please suggest. how i can use.
What do you think we refactor this package to use https://github.com/smartystreets/smartystreets-php-sdk and support all the API provides.
So this package will port the SDK as a dependency and give Laravel Integration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.