简体   繁体   English

在没有数据库的情况下更新 Laravel Scout (Algolia)

[英]Update Laravel Scout (Algolia) without database

I'm fetching data from Airtable and converting this to an Eloquent Model.我正在从 Airtable 获取数据并将其转换为 Eloquent 模型。

Is there a way to send this Model to Algolia without first storing it in a MySql DB?有没有办法将此模型发送到 Algolia 而无需先将其存储在 MySql DB 中?

try this command:试试这个命令:

php artisan scout:import "<your model path>"

eg php artisan scout:import "App\\Product"例如php artisan scout:import "App\\Product"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM