vendredi 25 octobre 2019

How to send menu and option arrays to route

I've created queries to read menus and options according to roles permission to build a dynamic menu. The problem is I don't know how to send my arrays from LoginController.php to a main route defined ih a method with route file web.php. When I try to see the dynamic menu there is an error indicating my array variables are undefined. My arrays are $consultaMenu and $consultOpciones, both arrays are returning correct data. I attach images of LoginController.php and web.phpenter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire