Skip to content

anditsung/nova-user-management

Repository files navigation

#User Management for Laravel Nova

##Install guide

Install Laravel

composer create-project laravel/laravel=6 [PROJECT_NAME]

Install Laravel Nova

composer config repositories.nova path [NOVA_PATH]
composer require laravel/nova
php artisan nova:install

Install User Management if install using folder run this first

composer config repositories.nova-user-management path [PACKAGE_PATH]
composer require tsung/nova-user-management
php artisan migrate
php artisan novauser:install
php artisan novauser:init

Done

====================

already add function to patch this when execute install command ( 13-05-2020 )

On production env, need to change gate method on NovaServiceProvider this method will check if the user can access nova, on this method cannot use "can" but "hasPermissionTo" will work fine

Gate::define('viewNova', function($user) {
    return $user->hasPermissionTo('viewNova');
});

====================

preview

User Index user index

User Form user form

Role Index role index

Role Form role form

Role Detail role detail

Permission Index permission index