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
DestroyRolePlayConversationRequest
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\RolePlay;
4
5use Illuminate\Foundation\Http\FormRequest;
6
7/**
8 * Request to delete a short roleplay session.
9 *
10 * Authorization (owner -> company Global Admin -> Vengreso Admin) and
11 * the duration-threshold check are enforced inside
12 * RolePlaySessionDeletionService so the controller stays thin.
13 *
14 * The route-bound `{conversation}` parameter is resolved via Laravel route
15 * model binding; a missing id returns 404 via the ModelNotFoundException
16 * handler before this request runs, so no `exists:` rule is needed.
17 * This request has no body payload — `rules()` intentionally returns [].
18 */
19class DestroyRolePlayConversationRequest extends FormRequest
20{
21    public function authorize(): bool
22    {
23        return true;
24    }
25
26    /**
27     * @return array<string, mixed>
28     */
29    public function rules(): array
30    {
31        return [];
32    }
33}