Hello,
I've managed to load the sidebar, extend it and render it, all looks pretty awesome. I experienced some difficulty with using Sentinel inside SidebarExtenders to display some of the menus based on the permissions of the user. Unfortunately, when I try to access Sentinel it's always a empty object. I found that from Laravel 5.3 there is а change how classes are loaded and you can not access Auth (maybe Sentinel also) within construct methods and while Laravel boots because actually there is still no real request. That's a problem because we load the sidebar using dependency injection inside the construct method of our AdminController. So my questions are:
1) Does this package supports using of Sentinel inside it for Laravel 5.4?
2) Or can we somehow load the sidebar inside a middleware maybe? (Where Sentinel is available and works)
Hello, I've managed to load the sidebar, extend it and render it, all looks pretty awesome. I experienced some difficulty with using Sentinel inside SidebarExtenders to display some of the menus based on the permissions of the user. Unfortunately, when I try to access Sentinel it's always a empty object. I found that from Laravel 5.3 there is а change how classes are loaded and you can not access Auth (maybe Sentinel also) within construct methods and while Laravel boots because actually there is still no real request. That's a problem because we load the sidebar using dependency injection inside the construct method of our AdminController. So my questions are: 1) Does this package supports using of Sentinel inside it for Laravel 5.4? 2) Or can we somehow load the sidebar inside a middleware maybe? (Where Sentinel is available and works)
Thanks in advance.