Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
MasqueradeUserFormRequest | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
authorize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
rules | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Http\Requests; |
4 | |
5 | use App\Http\Models\Auth\Role; |
6 | use Illuminate\Foundation\Http\FormRequest; |
7 | |
8 | class MasqueradeUserFormRequest extends FormRequest |
9 | { |
10 | /** |
11 | * Determine if the user is authorized to make this request. |
12 | */ |
13 | public function authorize(): bool |
14 | { |
15 | // $role = role($this->user()->role); |
16 | |
17 | // return $role === Role::VENGRESO_ADMIN; |
18 | return true; |
19 | } |
20 | |
21 | /** |
22 | * Get the validation rules that apply to the request. |
23 | * |
24 | * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string> |
25 | */ |
26 | public function rules(): array |
27 | { |
28 | return [ |
29 | // 'user_id' => 'required', |
30 | ]; |
31 | } |
32 | } |