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 ()