24 lines
541 B
PHP
24 lines
541 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
final class AdminCurrencyUpdateRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'name' => ['sometimes', 'string', 'max:64'],
|
|
'decimal_places' => ['sometimes', 'integer', 'min:0', 'max:12'],
|
|
'is_enabled' => ['sometimes', 'boolean'],
|
|
'is_bettable' => ['sometimes', 'boolean'],
|
|
];
|
|
}
|
|
}
|