Staff Members
Staff members are the users who can log in to the admin panel. They are stored in a separate table from theusers table used for customer authentication. This is a deliberate design choice to ensure that customers can never accidentally be given access to the admin panel.
Roles and Permissions
The Lunar admin panel uses roles and permissions for authorization, powered by thespatie/laravel-permission package. Multiple permissions can be assigned to a role, and roles can be assigned to staff members rather than assigning permissions individually.
Roles
Lunar provides two built-in roles:admin and staff. New roles can be created using the Access Control page in the Staff menu.
After installation, the panel has one admin. Additional admin accounts can be assigned, but non-admin staff cannot assign the admin role to others.