Skip to content

Commit c35686b

Browse files
committed
Remove ReCaptcha-related functionality and update dependencies
- Deleted `ReCaptcha` validation rule and its usage in `ResendActivationFormRequest`. - Removed ReCaptcha keys from `env.example`. - Updated composer dependencies to the latest versions.
1 parent d5c99d4 commit c35686b

11 files changed

Lines changed: 302 additions & 418 deletions

File tree

CLAUDE.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ This application is a Laravel application and its main Laravel ecosystems packag
6666
- laravel/reverb (REVERB) - v1
6767
- laravel/sanctum (SANCTUM) - v4
6868
- livewire/livewire (LIVEWIRE) - v3
69+
- laravel/boost (BOOST) - v2
6970
- laravel/breeze (BREEZE) - v2
7071
- laravel/mcp (MCP) - v0
72+
- laravel/pail (PAIL) - v1
7173
- laravel/pint (PINT) - v1
7274
- pestphp/pest (PEST) - v4
7375
- phpunit/phpunit (PHPUNIT) - v12
@@ -128,11 +130,7 @@ This project has domain-specific skills available. You MUST activate the relevan
128130

129131
- You should use the `tinker` tool when you need to execute PHP to debug code or query Eloquent models directly.
130132
- Use the `database-query` tool when you only need to read from the database.
131-
132-
## Reading Browser Logs With the `browser-logs` Tool
133-
134-
- You can read browser logs, errors, and exceptions using the `browser-logs` tool from Boost.
135-
- Only recent browser logs will be useful - ignore old logs.
133+
- Use the `database-schema` tool to inspect table structure before writing migrations or models.
136134

137135
## Searching Documentation (Critically Important)
138136

@@ -158,20 +156,21 @@ This project has domain-specific skills available. You MUST activate the relevan
158156
## Constructors
159157

160158
- Use PHP 8 constructor property promotion in `__construct()`.
161-
- <code-snippet>public function __construct(public GitHub $github) { }</code-snippet>
159+
- `public function __construct(public GitHub $github) { }`
162160
- Do not allow empty `__construct()` methods with zero parameters unless the constructor is private.
163161

164162
## Type Declarations
165163

166164
- Always use explicit return type declarations for methods and functions.
167165
- Use appropriate PHP type hints for method parameters.
168166

169-
<code-snippet name="Explicit Return Types and Method Params" lang="php">
167+
<!-- Explicit Return Types and Method Params -->
168+
```php
170169
protected function isAccessible(User $user, ?string $path = null): bool
171170
{
172171
...
173172
}
174-
</code-snippet>
173+
```
175174

176175
## Enums
177176

@@ -285,7 +284,7 @@ protected function isAccessible(User $user, ?string $path = null): bool
285284

286285
# Laravel Pint Code Formatter
287286

288-
- You must run `vendor/bin/pint --dirty --format agent` before finalizing changes to ensure your code matches the project's expected style.
287+
- If you have modified any PHP files, you must run `vendor/bin/pint --dirty --format agent` before finalizing changes to ensure your code matches the project's expected style.
289288
- Do not run `vendor/bin/pint --test --format agent`, simply run `vendor/bin/pint --format agent` to fix any formatting issues.
290289

291290
=== pest/core rules ===
@@ -440,4 +439,5 @@ Authenticate before testing panel functionality. Filament uses Livewire, so use
440439
**Recent breaking changes to Filament:**
441440
- File visibility is `private` by default. Use `->visibility('public')` for public access.
442441
- `Grid`, `Section`, and `Fieldset` no longer span all columns by default.
442+
443443
</laravel-boost-guidelines>

app/Http/Requests/EventJoinRequest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
namespace App\Http\Requests;
2222

2323
use App\Rules\EventJoinUniqueUserTeamValidation;
24-
use App\Rules\ReCaptcha;
2524
use Illuminate\Foundation\Http\FormRequest;
2625

2726
/**
@@ -56,7 +55,6 @@ public function messages()
5655
return [
5756
'nfn_user.required' => 'Zooniverse username required',
5857
'nfn_user.between' => 'Username must be between 3-30 characters',
59-
'g-recaptcha-response' => ['required', new ReCaptcha],
6058
];
6159
}
6260
}

app/Http/Requests/RegisterFormRequest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
namespace App\Http\Requests;
2222

23-
use App\Rules\ReCaptcha;
24-
2523
/**
2624
* Class RegisterFormRequest
2725
*/
@@ -47,7 +45,6 @@ public function rules(): array
4745
'password' => 'required|min:6|confirmed',
4846
'password_confirmation' => 'required',
4947
'timezone' => 'required',
50-
'g-recaptcha-response' => ['required', new ReCaptcha],
5148
];
5249
}
5350
}

app/Http/Requests/ResendActivationFormRequest.php

Lines changed: 0 additions & 52 deletions
This file was deleted.

app/Rules/ReCaptcha.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)