Category Archives: Laravel

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 »

Laravel Nova: Favourite Packages

Nova Permission If you are using Spatie Laravel Permission package, and you absolutely need to install package Nova Permission for managing roles and permissions. This package enabled you to manage roles and permissions for your applications. Nova Tabs Nova Tabs, package by Nova Tabs enabled you to organise your view using tab. For me, it’s… Read More »

Laravel: Write Class Generator Command

Assalamualaikum, In this post, I will share with you how you can create your own class generator – like php artisan make:model …. So here the trick, in order to create your own class generator command, you can extend the use IlluminateConsoleGeneratorCommand. For instance, you want to create make:service. First, create new artisan command by… Read More »