我已经在我的系统上安装了sphinxsearch,并且对于核心php正常工作.现在我想在laravel 5.2中使用它.我已经按照这些步骤
1) install composer
2) 'providers' => array(
'Scalia\SphinxSearch\SphinxSearchServiceProvider',
)
3) 'aliases' => array(
'SphinxSearch' => 'Scalia\SphinxSearch\SphinxSearchFacade',
)
4) php artisan config:clear
5) php artisan config:publish scalia/sphinxsearch
error [InvalidArgumentException]
Command "config:publish" is not defined.
Did you mean one of these?
vendor:publish
config:clear
config:cache
6) php artisan vendor:publish --provider=sngrl\SphinxSearch\SphinxSearchServiceProvider --force
Nothing to publish for tag [].
如何在Laravel中配置Sphinxsearch
解决方法:
在控制台中运行
php artisan vendor:publish