Thursday, March 30, 2017

Laravel Scout - Keeping soft deleted models updated with search

By default Laravel Scout will remove any model from the search index upon it being deleted, even if that model is soft deleted.

Instead of being removed, how can we keep the model in the search index and update it to have the current timestamp for deleted_at?



via Kirill Fuchs

Advertisement