From 6902eadef5949389ac0c100d15a74d4b7932f82a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veronika=20Feh=C3=A9rv=C3=ADziov=C3=A1?= <128744051+VeronikaFeherviziova@users.noreply.github.com> Date: Tue, 2 Dec 2025 19:00:04 +0100 Subject: [PATCH] refactor: rename CLI for creating admin --- .../{CreateGarant.php => CreateAdmin.php} | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) rename backend/app/Console/Commands/{CreateGarant.php => CreateAdmin.php} (86%) diff --git a/backend/app/Console/Commands/CreateGarant.php b/backend/app/Console/Commands/CreateAdmin.php similarity index 86% rename from backend/app/Console/Commands/CreateGarant.php rename to backend/app/Console/Commands/CreateAdmin.php index cff78db..3f57bcf 100644 --- a/backend/app/Console/Commands/CreateGarant.php +++ b/backend/app/Console/Commands/CreateAdmin.php @@ -4,23 +4,26 @@ namespace App\Console\Commands; use Illuminate\Console\Command; use App\Models\User; -use Illuminate\Support\Facades\Hash; +use Hash; -class CreateGarant extends Command +class CreateAdmin extends Command { /** - * Názov CLI príkazu. + * The name and signature of the console command. + * + * @var string */ protected $signature = 'user:create-garant'; /** - * Popis príkazu. + * The console command description. + * + * @var string */ protected $description = 'Interaktívne vytvorí nového používateľa s rolou admin (garant)'; /** - * Spustenie príkazu. - * php artisan user:create-garant + * Execute the console command. */ public function handle() {