help create users. admin, etc
Closed this issue · 2 comments
kwaknet01 commented
thank you!
am-chris commented
@kwaknet01 Hi. Not sure if you're talking about creating users via 1) the website or 2) the code.
-
To create employees via the website: go to Employees sidebar link, click Employees then click the New Employee button. The process is the same for creating Customers, just go to the Customers sidebar link.
-
To create users via code: check out database/seeds/UserSeeder.php. This file contains an example of how to create a user with Admin permissions (the Role is called superadmin.) Also check out the database/seeds/PermissionsTableSeeder.php, it shows how to create Roles/Permissions via code.
Hopefully this helps. Thanks!