Skip to content

Commit 025b24c

Browse files
[10.x] Adds Tappable and Conditionable to Relation class (#50124)
* [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>
1 parent 85b2878 commit 025b24c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Illuminate/Database/Eloquent/Relations/Relation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
use Illuminate\Database\Eloquent\ModelNotFoundException;
1111
use Illuminate\Database\MultipleRecordsFoundException;
1212
use Illuminate\Database\Query\Expression;
13+
use Illuminate\Support\Traits\Conditionable;
14+
use Illuminate\Support\Traits\Tappable;
1315
use Illuminate\Support\Traits\ForwardsCalls;
1416
use Illuminate\Support\Traits\Macroable;
1517

1618
abstract class Relation implements BuilderContract
1719
{
18-
use ForwardsCalls, Macroable {
20+
use Conditionable, ForwardsCalls, Macroable, Tappable {
1921
Macroable::__call as macroCall;
2022
}
2123

0 commit comments

Comments
 (0)