Skip to content

fix: remove seeded default users - #7

Merged
vickymaulana merged 1 commit into
mainfrom
codex/fix-default-superadmin-password-in-seeder
Mar 18, 2026
Merged

fix: remove seeded default users#7
vickymaulana merged 1 commit into
mainfrom
codex/fix-default-superadmin-password-in-seeder

Conversation

@vickymaulana

Copy link
Copy Markdown
Owner

Motivation

  • Prevent creation of a predictable privileged account during php artisan db:seed by removing seeded demo users so setup does not ship a known superadmin credential.

Description

  • Deleted the code that created the Super Admin and Test User entries from database/seeders/DatabaseSeeder.php so the seeder now only runs SettingSeeder and RolePermissionSeeder.
  • Removed the now-unused App\Models\User import from DatabaseSeeder.php as part of the cleanup.

Testing

  • Ran php -l database/seeders/DatabaseSeeder.php which reported no syntax errors.
  • Attempted php artisan test but it was skipped in this environment because vendor/autoload.php is missing, so the test suite could not be executed here.

Codex Task

@vickymaulana
vickymaulana merged commit 0198b12 into main Mar 18, 2026
1 check passed
@vickymaulana
vickymaulana deleted the codex/fix-default-superadmin-password-in-seeder branch March 18, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant