1 | <?php |
||
2 | |||
3 | use Illuminate\Database\Eloquent\Builder; |
||
4 | |||
5 | Builder::macro('user', function ($value) { |
||
6 | return $this->where('user_id', $value); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
7 | }); |
||
8 |