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

Database seeder for initial user/role/perm #6

Open
bellwood opened this issue Dec 7, 2017 · 1 comment
Open

Database seeder for initial user/role/perm #6

bellwood opened this issue Dec 7, 2017 · 1 comment

Comments

@bellwood
Copy link

bellwood commented Dec 7, 2017

Would it be possible to ship database seeders to:

  • create the default admin user
  • create the default admin role
  • create the default 'Administer roles & permissions' permission
  • connect those relationships

It would, seemingly, simplify the documentation, deployment process and be a nice value-add to this otherwise solid foundation.

Thank you very much =)

@drbyte
Copy link

drbyte commented Apr 17, 2018

Here's a quick example, similar to what's now in the spatie package README: https://github.com/drbyte/spatie-permissions-demo/blob/master/database/seeds/PermissionsDemoSeeder.php

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

No branches or pull requests

2 participants