mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-28 03:24:45 +02:00

* simplify setup command * add installer page * add route for installer * adjust gitignore * set colors globally * add "unsaved data changes" alert * add helper method to check if panel is installed * make nicer * redis username isn't required * bring back db settings command * store current date in "installed" file * only redirect if install was successfull * remove fpm requirement * change "installed" marker to env variable * improve requirements step * add commands to change cache, queue or session drivers respectively * removed `grouped` for better mobile view
32 lines
892 B
PHP
32 lines
892 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages\Installer\Steps;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Wizard\Step;
|
|
|
|
class AdminUserStep
|
|
{
|
|
public static function make(): Step
|
|
{
|
|
return Step::make('user')
|
|
->label('Admin User')
|
|
->schema([
|
|
TextInput::make('user.email')
|
|
->label('Admin E-Mail')
|
|
->required()
|
|
->email()
|
|
->default('admin@example.com'),
|
|
TextInput::make('user.username')
|
|
->label('Admin Username')
|
|
->required()
|
|
->default('admin'),
|
|
TextInput::make('user.password')
|
|
->label('Admin Password')
|
|
->required()
|
|
->password()
|
|
->revealable(),
|
|
]);
|
|
}
|
|
}
|