From f4f9cf72157365ffa8275f87bda90b0c8b9dc560 Mon Sep 17 00:00:00 2001 From: Jim Ciallella <1777776+allella@users.noreply.github.com> Date: Wed, 15 Jul 2026 00:50:52 -0400 Subject: [PATCH 1/3] Remove the admin seeder as it creates more potential harm than good --- database/seeders/UsersTableSeeder.php | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 database/seeders/UsersTableSeeder.php diff --git a/database/seeders/UsersTableSeeder.php b/database/seeders/UsersTableSeeder.php deleted file mode 100644 index e942fac7..00000000 --- a/database/seeders/UsersTableSeeder.php +++ /dev/null @@ -1,27 +0,0 @@ - 'admin@admin.com'], - [ - 'first_name' => 'admin', - 'last_name' => 'admin', - 'password' => bcrypt('admin'), - 'active' => true, - ] - ); - } -} From d4401acc564d973318a44b946adfaa4a5436f0ee Mon Sep 17 00:00:00 2001 From: Jim Ciallella <1777776+allella@users.noreply.github.com> Date: Wed, 15 Jul 2026 01:12:12 -0400 Subject: [PATCH 2/3] Rework the Filament commands section. Add a note about tests and seeders since it is easy to assume seeder data is visible to tests, but that is not the default --- CONTRIBUTING.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d0a1f650..5f4b06db 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -186,9 +186,6 @@ Run the following script to install dependencies, run database migrations, and r sh scripts/handle-deploy-update.sh ``` -The database migrations will generate a default user *admin@admin.com* with a password of _admin_ and fill the states table. -BE SURE TO CHANGE OR REMOVE THIS DEFAULT ADMIN ACCOUNT AND PASSWORD outside of localhost development - #### Generate App Key Once the app is running, run the following command to generate your [app encryption key](https://laravel.com/docs/10.x/encryption): @@ -361,7 +358,7 @@ docker exec "hackgreenville" /bin/bash -c "php artisan import:events" - Run `php artisan` to see a full list of availabe commands. - The API explorer can be viewed at http://localhost/docs/api and can be recompiled with `php artisan scribe:generate` -- Running tests `php artisan test` +- Running tests `php artisan test` - By default, Laravel tests run independent of database seeders, but you can explicitly enable them within a test, if needed. - Refreshing events from the remote API: `php artisan import:events` - Run database migrations: `php artisan migrate --seed` - Completely erase and rebuild the database: [Danger Zone] `php artisan migrate:fresh --seed` [/Danger Zone] @@ -408,9 +405,14 @@ The Meetup OAuth client private key file can be stored anywhere on your machine. # Admin Panel - The admin panel is built in [Filament](https://filamentphp.com/docs/3.x/panels/resources/getting-started). -- After [seeding the DB](#interacting-with-your-running-app), you'll have a default set of login credentials of admin@admin.com, so BE SURE TO CHANGE THE PASSWORD - To view the admin panel routes / path , run: `artisan route:list --name=filament`, or find the configured value in the [.env](#environment-variables). -- See the [initial PR](https://github.com/hackgvl/hackgreenville-com/pull/231) for more usage notes +- User management can be achieved through Artisan commands. + - Commands are defined in app/Console/Commands/ and can be viewed using `php artisan list app:user`, such as: + - `php artisan app:user:create ` + - `php artisan app:user:activate ` + - `php artisan app:user:deactivate ` + - `php artisan app:user:delete ` + - `php artisan app:user:reset-password ` - Filament provides commands for generating [CRUD resources](https://filamentphp.com/docs/3.x/panels/resources/getting-started) and [individual pages](https://filamentphp.com/docs/3.x/panels/pages). # Synchronizing Your Fork with the Latest Development Code Changes From f3711cf26c5103faf7ff03f5812b3386c0601fed Mon Sep 17 00:00:00 2001 From: Jim Ciallella <1777776+allella@users.noreply.github.com> Date: Wed, 15 Jul 2026 01:21:04 -0400 Subject: [PATCH 3/3] Remove the UserSeeder from DatabaseSeeders.php --- database/seeders/DatabaseSeeder.php | 1 - 1 file changed, 1 deletion(-) diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index e3add976..efc10adc 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -13,7 +13,6 @@ class DatabaseSeeder extends Seeder */ public function run() { - $this->call(UsersTableSeeder::class); $this->call(CategorySeeder::class); $this->call(OrganizationSeeder::class); $this->call(VenueSeeder::class);