composer update
PHP Tests / php-tests (push) Failing after 4m12s

This commit is contained in:
Nyan Lin Paing
2026-08-17 23:24:31 +07:00
parent 2fdfc0040c
commit c3a6f6cc6e
16 changed files with 764 additions and 40 deletions
@@ -30,7 +30,8 @@ $articles = Article::whereHas('user', function ($q) {
Correct:
```php
public function scopeActive(Builder $query): Builder
#[Scope]
protected function active(Builder $query): Builder
{
return $query->where('verified', true)->whereNotNull('activated_at');
}
@@ -58,7 +59,8 @@ class PublishedScope implements Scope
Correct (local scope you opt into):
```php
public function scopePublished(Builder $query): Builder
#[Scope]
protected function published(Builder $query): Builder
{
return $query->where('published', true);
}
@@ -90,7 +90,7 @@ Correct:
## CSRF Protection
Include `@csrf` in all POST/PUT/DELETE Blade forms. In Inertia apps, the `@csrf` directive is automatically applied.
Include `@csrf` in all POST/PUT/DELETE Blade forms. Inertia doesn't use `@csrf`; its HTTP client sends the `XSRF-TOKEN` cookie back as the `X-XSRF-TOKEN` header, which Laravel accepts in place of the `_token` field.
Incorrect:
```blade