mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 06:24:44 +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
43 lines
1.7 KiB
PHP
43 lines
1.7 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Pages\Installer\Steps;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Wizard\Step;
|
|
|
|
class RedisStep
|
|
{
|
|
public static function make(): Step
|
|
{
|
|
return Step::make('redis')
|
|
->label('Redis')
|
|
->columns()
|
|
->schema([
|
|
TextInput::make('env.REDIS_HOST')
|
|
->label('Redis Host')
|
|
->hintIcon('tabler-question-mark')
|
|
->hintIconTooltip('The host of your redis server. Make sure it is reachable.')
|
|
->required()
|
|
->default(config('database.redis.default.host')),
|
|
TextInput::make('env.REDIS_PORT')
|
|
->label('Redis Port')
|
|
->hintIcon('tabler-question-mark')
|
|
->hintIconTooltip('The port of your redis server.')
|
|
->required()
|
|
->default(config('database.redis.default.port')),
|
|
TextInput::make('env.REDIS_USERNAME')
|
|
->label('Redis Username')
|
|
->hintIcon('tabler-question-mark')
|
|
->hintIconTooltip('The name of your redis user. Can be empty')
|
|
->default(config('database.redis.default.username')),
|
|
TextInput::make('env.REDIS_PASSWORD')
|
|
->label('Redis Password')
|
|
->hintIcon('tabler-question-mark')
|
|
->hintIconTooltip('The password for your redis user. Can be empty.')
|
|
->password()
|
|
->revealable()
|
|
->default(config('database.redis.default.password')),
|
|
]);
|
|
}
|
|
}
|