Ais-hierarchical-menu Example with laravel model and Eloquent: Relationships

Hello, someone of you knows a good link by a Laravel Eloquent example including migration file and relations is described.
Thank you, my problem is described below.

Laravel in combination with
over 2 levels.
Show as example in ais-hierarchical-menu


  • District

I do not know how I do that in the model in the method
toSearchableArray ()

Hi @deutsch.hbf,

Thanks for being a part of the Algolia Community and sorry for the delay!

You can find more information about the ais-hierarchical-menu here.

I believe if you follow that example, it will solve your problem, but if not, let us know!