Skip to content

Commit

Permalink
[10.x] Adds Tappable and Conditionable to Relation class (#50124)
Browse files Browse the repository at this point in the history
* [10.x] Fixes proxying conditionable and tappable to relation

* [10.x] Fixes proxying conditionable and tappable to relation

* Update Relation.php

---------

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
DarkGhostHunter and taylorotwell authored Feb 19, 2024
1 parent 85b2878 commit 025b24c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Database/Eloquent/Relations/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Database\MultipleRecordsFoundException;
use Illuminate\Database\Query\Expression;
use Illuminate\Support\Traits\Conditionable;
use Illuminate\Support\Traits\Tappable;
use Illuminate\Support\Traits\ForwardsCalls;
use Illuminate\Support\Traits\Macroable;

abstract class Relation implements BuilderContract
{
use ForwardsCalls, Macroable {
use Conditionable, ForwardsCalls, Macroable, Tappable {
Macroable::__call as macroCall;
}

Expand Down

0 comments on commit 025b24c

Please sign in to comment.