28 lines
655 B
PHP
28 lines
655 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\GuideCard;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class UpdateGuideCardRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, array<int, string>>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'title' => ['sometimes', 'string', 'max:255'],
|
|
'description' => ['sometimes', 'string', 'max:500'],
|
|
'icon' => ['nullable', 'string', 'max:100'],
|
|
'order_index' => ['sometimes', 'integer', 'min:0'],
|
|
'is_active' => ['sometimes', 'boolean'],
|
|
];
|
|
}
|
|
}
|