Revert "rector: arrrrr"

This reverts commit 16c0cd10d8.
This commit is contained in:
Andras Bacsai
2025-01-07 15:31:43 +01:00
parent da07b4fdcf
commit 1fe4dd722b
349 changed files with 3689 additions and 4184 deletions

View File

@@ -3,7 +3,6 @@
namespace App\Console\Commands;
use App\Models\User;
use Exception;
use Illuminate\Console\Command;
class RootChangeEmail extends Command
@@ -32,9 +31,9 @@ class RootChangeEmail extends Command
$email = $this->ask('Give me a new email for root user');
$this->info('Updating root email...');
try {
User::query()->find(0)->update(['email' => $email]);
User::find(0)->update(['email' => $email]);
$this->info('Root user\'s email updated successfully.');
} catch (Exception $e) {
} catch (\Exception $e) {
$this->error('Failed to update root user\'s email.');
return;