如何将 smartystreet 与 laravel 整合
How to integrate smartystreet with laravel
我想将 smartystreets 与我的 laravel 项目集成,但我做不到。
我试过这个 link ,但是当我 运行 "$ php artisan vendor:publish" 时它抛出错误 "Undefined constant 'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider'" .
任何帮助将不胜感激。`
上述第 2 步的更改 link 对我有用:
改变这个:
'providers' => array(
...
'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider',
)
'aliases' => array(
...
'SmartyStreets' => 'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsFacade',
)
对此:
'providers' => [
...
FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider::class,
],
'aliases' => [
...
'SmartyStreets' = > FireEngineRed\SmartyStreetsLaravel\SmartyStreetsFacade::class,
],
注意:在 both 数组的末尾添加 SmartyStreets providers 和 aliases 元素。
我想将 smartystreets 与我的 laravel 项目集成,但我做不到。
我试过这个 link ,但是当我 运行 "$ php artisan vendor:publish" 时它抛出错误 "Undefined constant 'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider'" . 任何帮助将不胜感激。`
上述第 2 步的更改 link 对我有用:
改变这个:
'providers' => array(
...
'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider',
)
'aliases' => array(
...
'SmartyStreets' => 'FireEngineRed\SmartyStreetsLaravel\SmartyStreetsFacade',
)
对此:
'providers' => [
...
FireEngineRed\SmartyStreetsLaravel\SmartyStreetsServiceProvider::class,
],
'aliases' => [
...
'SmartyStreets' = > FireEngineRed\SmartyStreetsLaravel\SmartyStreetsFacade::class,
],
注意:在 both 数组的末尾添加 SmartyStreets providers 和 aliases 元素。