Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

m615's avatar
Level 2

How do I deploy Laravel Scout to production

I've implemented search in my application using Scout and the tntsearch driver. Locally it works great. After deploying to production I noticed that search was not returning anything.

I opened up a console and tried to run the php artisan scout:import and php artisan tntsearch:import commands but get an error from artisan that says these commands are not found.

I'm assuming there is some production level step that I'm missing?

0 likes
3 replies
jlrdw's avatar

I don't know your Git setup, but is vendor published already on production.

php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider"

Seems it should be. You may try a new install if needed, but backup any custom code first just in case.

m615's avatar
Level 2

I actually think the problem may be that I'm hosting on Heroku and the commands can't create the .index file in the storage directory.

Is there a way to config scout and tntsearch to use an AWS bucket?

Please or to participate in this conversation.