You've already forked isop-mirror
refactor: rename CLI for creating admin
This commit is contained in:
@@ -4,23 +4,26 @@ namespace App\Console\Commands;
|
|||||||
|
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use App\Models\User;
|
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';
|
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)';
|
protected $description = 'Interaktívne vytvorí nového používateľa s rolou admin (garant)';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Spustenie príkazu.
|
* Execute the console command.
|
||||||
* php artisan user:create-garant
|
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
Reference in New Issue
Block a user