af7b4c30cb
Made the code look a bit better and added a way for the admin options to save. (I later realized I could have done this using a much easier way. I'm just built different and it works. If it aint broke don't fix it.)
29 lines
699 B
PHP
29 lines
699 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Requests\Admin\Extensions\Blueprint;
|
|
|
|
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
|
|
|
|
class BlueprintSettingsFormRequest extends AdminFormRequest
|
|
{
|
|
/**
|
|
* Return all the rules to apply to this request's data.
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'placeholder:1' => 'string',
|
|
'placeholder:2' => 'string',
|
|
'placeholder:3' => 'string',
|
|
];
|
|
}
|
|
|
|
public function attributes(): array
|
|
{
|
|
return [
|
|
'placeholder:1' => 'placeholder one',
|
|
'placeholder:2' => 'placeholder two',
|
|
'placeholder:3' => 'placeholder three',
|
|
];
|
|
}
|
|
}
|