Associate users with roles and permissions to get started.
-
Create a new account in the portal. Please ignore this step if already created an account.
-
Assigning roles to the users
- Run the following command to boot up tinker in the terminal/CMD in your project directory.
php artisan tinker
- Once you are in, use the following namespace
use Modules\User\Entities\User
- Extract the User from the database.
$user = User::first()
- Assign the super-admin role to the user, however you can change the roles available in the system as per requirements.
$user->assignRole('super-admin')