in Laravel

Laravel Command To Import Into Algolia

In the previous article we investigated how you can use Algolia with Laravel to create a realtime search. In this tutorial we learnt about the Laravel Scout command of import that allows you to import an entire Model data into the Algolia index.

php artisan scout:import 'App\Models\Post'

But there is a problem with this approach as it will just grab all the data for this model and import it into

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To The Weekly Newsletter

Get weekly updates to your email