22 lines
421 B
PHP
22 lines
421 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Admin\Setting;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
use Illuminate\Validation\Rule;
|
|
|
|
class UpdateAppearanceRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return auth()->check();
|
|
}
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'appearance' => ['required', Rule::in(['light', 'dark', 'system'])],
|
|
];
|
|
}
|
|
}
|