update fix deadcode, security

This commit is contained in:
baodev0
2026-09-28 08:26:29 +07:00
parent 3af59bd9c5
commit 82080b5b84
452 changed files with 4857 additions and 26289 deletions
@@ -1,31 +0,0 @@
<?php
namespace App\Http\Requests\ModuleHosting;
use Illuminate\Foundation\Http\FormRequest;
class CreateHostingRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'name' => 'required|ip|ipv4',
'user' => 'required',
'password' => 'required',
'status' => 'required'
];
}
}
@@ -1,31 +0,0 @@
<?php
namespace App\Http\Requests\ModuleHosting;
use Illuminate\Foundation\Http\FormRequest;
class UpdateHostingRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'name' => 'required|ip|ipv4',
'user' => 'required',
'password' => 'nullable',
'status' => 'required'
];
}
}