mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 14:23:44 +02:00
Fix server description nullablility
This commit is contained in:
@@ -254,6 +254,7 @@ class ServersController extends Controller
|
||||
* @throws \Pterodactyl\Exceptions\DisplayException
|
||||
* @throws \Pterodactyl\Exceptions\Model\DataValidationException
|
||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||
* @throws \Illuminate\Validation\ValidationException
|
||||
*/
|
||||
public function store(ServerFormRequest $request)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,10 @@ class ServerFormRequest extends AdminFormRequest
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return Server::getCreateRules();
|
||||
$rules = Server::getCreateRules();
|
||||
$rules['description'][] = 'nullable';
|
||||
|
||||
return $rules;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user