Category Archives: Laravel

Laravel: Impersonate

Assalamualaikum / Hi, It’s a common scenario, as developer, we have multiple roles for the application. To test each of the roles is tedious – you need to run multiple browsers, incognito mode, to test each of the roles. So, impersonate is one of the option to allow you easily swap / change current logged… Read More »

Laravel Nova: Control Sidebar Display

Assalamualaikum / Hi, I have come with a requirement, where users can do CRUD operation for Nova resources, but want to control the sidebar display based on user’s permission / role / policy. To enable that, you need to overwrite the availableForNavigation static method, as following. As you can see, what I did basically to… Read More »