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

password admin #27

Open
Dimaspngstu opened this issue Jun 7, 2022 · 2 comments
Open

password admin #27

Dimaspngstu opened this issue Jun 7, 2022 · 2 comments

Comments

@Dimaspngstu
Copy link

password adminnya apa bang?

@adhiariyadi
Copy link
Owner

untuk repo ini sepertinya tidak ada seeder user, bisa coba langsung register dan ganti role melalui database langsung saja

@dassudip2001
Copy link

dassudip2001 commented Jun 11, 2023

create a new seeder file using the command

  • php artisan make:seeder AdminSeeder

  • and then call database seeder like

  • $this->call(AdminSeeder::class);
    
  • and write the admin seeder code like

  • $user= User::create([

          'name' => 'admin',
          'email' => 'admin@xyz.com',
          'email_verified_at' => now(),
          'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
    
      ]);
    

or you can use hash

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

3 participants