Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
StartMasqueradeRequest
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 authorize
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 rules
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Http\Requests\v2\Masquerade;
4
5use Illuminate\Foundation\Http\FormRequest;
6
7/**
8 * Request for starting a masquerade session.
9 *
10 * This request has no additional validation rules since the masquerade JWT
11 * is passed via the Authorization Bearer header and validated in the service layer.
12 * No Passport auth:api middleware is applied to this endpoint.
13 */
14class StartMasqueradeRequest extends FormRequest
15{
16    /**
17     * Determine if the user is authorized to make this request.
18     *
19     * Always returns true because JWT validation is handled by the service.
20     */
21    public function authorize(): bool
22    {
23        return true;
24    }
25
26    /**
27     * Get the validation rules that apply to the request.
28     *
29     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
30     */
31    public function rules(): array
32    {
33        return [];
34    }
35}