24 lines
482 B
PHP
24 lines
482 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Http\Requests\TenantSetting;
|
||
|
|
|
||
|
|
use Illuminate\Foundation\Http\FormRequest;
|
||
|
|
|
||
|
|
class UpdateSettingRequest extends FormRequest
|
||
|
|
{
|
||
|
|
public function authorize(): bool
|
||
|
|
{
|
||
|
|
return true;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function rules(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'group' => 'required|string|max:50',
|
||
|
|
'key' => 'required|string|max:100',
|
||
|
|
'value' => 'required',
|
||
|
|
'description' => 'nullable|string|max:255',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|