0], [ 'name' => env('ROOT_USER_NAME', 'Root User'), 'email' => env('ROOT_USER_EMAIL'), 'password' => Hash::make(env('ROOT_USER_PASSWORD')), ] ); InstanceSettings::updateOrCreate( ['id' => 0], ['is_registration_enabled' => false] ); echo " Root user created/updated successfully.\n"; echo " Registration has been disabled.\n"; } else { echo " Warning: ROOT_USER_EMAIL and ROOT_USER_PASSWORD environment variables are required for root user creation.\n"; } } }