diff --git a/eloquent-relationships.md b/eloquent-relationships.md index d357daa0aa..e751ff90f0 100644 --- a/eloquent-relationships.md +++ b/eloquent-relationships.md @@ -2187,7 +2187,7 @@ use App\Models\Book; $books = Book::all(); -if ($someCondition) { +if ($condition) { $books->load('author', 'publisher'); } ``` diff --git a/queues.md b/queues.md index f6a6e873ed..66c30a576f 100644 --- a/queues.md +++ b/queues.md @@ -821,7 +821,7 @@ use Illuminate\Queue\Middleware\Skip; public function middleware(): array { return [ - Skip::when($someCondition), + Skip::when($condition), ]; } ```