Skip to content

painlesscode/module-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Module Connector

A package to connect modules and control layouts for different guards.

Use case

Asset building

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)'

Register Menu

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.

Copyright

MMIT SOFT LTD. All Rights Reserved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages