lms/app/Http/Requests/Auth/UpdateGoogleAuthSettingsRequest.php
2025-12-15 12:26:23 +01:00

30 lines
637 B
PHP

<?php
namespace App\Http\Requests\Auth;
use Illuminate\Foundation\Http\FormRequest;
class UpdateGoogleAuthSettingsRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*/
public function rules(): array
{
return [
'active' => 'required|boolean',
'client_id' => 'required|string',
'client_secret' => 'required|string',
'redirect' => 'required|string',
];
}
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
}