Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
StorePromptPersonalMilestoneRequest
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 rules
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Http\Requests\v2\PromptPersonalMilestone;
4
5use App\Http\Requests\v2\Parameter\Concerns\AuthorizesVengresoAdmin;
6use Illuminate\Foundation\Http\FormRequest;
7
8/**
9 * Request for creating a new prompt personal milestone.
10 *
11 * @property string $title The milestone title (e.g., "Work Anniversary", "Promotion")
12 * @property string $prompt The prompt text that instructs the AI for celebration posts
13 */
14class StorePromptPersonalMilestoneRequest extends FormRequest
15{
16    use AuthorizesVengresoAdmin;
17
18    /**
19     * Get the validation rules that apply to the request.
20     *
21     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
22     */
23    public function rules(): array
24    {
25        return [
26            'title' => 'required|string|max:255',
27            'prompt' => 'required|string',
28        ];
29    }
30}