25 lines
469 B
PHP
25 lines
469 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests\Auth;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class SetRoleSessionRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'selected_role' => ['required', 'string', 'max:255'],
|
|
'redirect_to' => ['nullable', 'string', 'max:2048'],
|
|
];
|
|
}
|
|
}
|