Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (seeder) : add seed easy SuperAdmin #433

Closed
wants to merge 1 commit into from

Conversation

ahawazi
Copy link

@ahawazi ahawazi commented Oct 26, 2024

this code help the user can create SuperAdmin role easily.

file : SuperAdminSeeder.stub
Copy link

what-the-diff bot commented Oct 26, 2024

PR Summary

  • Creation of a New Administrative Feature
    Implemented a new element called 'SuperAdminSeeder' that ensures a role named 'super_admin' is established.
  • Creation of Default Super Administrator Account
    In the event there's no existing account, a user with the email '[email protected]' is created.
  • Role Assignment
    The newly created or modified user is conferred the 'super_admin' role.
  • Permission Checks and Generation
    Incorporation of a check for existing permissions has been added. If no permissions are found, the system creates them using a tool named Artisan with the command 'shield:generate'.
  • Assignment of Permissions to the Super Administrator
    In case permissions were not originally present, they are granted to the 'super_admin' role subsequent to their generation.

@ahawazi
Copy link
Author

ahawazi commented Oct 28, 2024

Will it be merge?

@bezhanSalleh
Copy link
Owner

Thanks. but not going to merge this because it depends on the project and dev, that's why we have the commands for quick test and setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants