A package to connect modules and control layouts for different guards.
As we are using tailwindcss for styling in every module, to get proper styling add below path in tailwind.config.js
content section
'./vendor/painlesscode/*/resources/**/*(.blade.php|.js)'
app(MenuRegisterer::class)->register(
Menu::make('Account', [
Menu::make('Head', 'http://head'),
Menu::make('Income', 'http://head')->addPermission('info-read'),
Menu::make('Expense', 'http://head'),
Menu::make('Report', [
Menu::make('Income', 'http://cashflow')->addPermission('income-read'),
Menu::make('Expense', 'http://cashflow')->addPermission('expense-read'),
Menu::make('CashFlow', 'http://cashflow'),
]),
]), 'web' // default guard is web
);
Permission will bubble up to parent if used any.
MMIT SOFT LTD. All Rights Reserved.