signifly /
laravel-builder-macros
| 1 | <?php |
||
| 2 | |||
| 3 | use Illuminate\Database\Eloquent\Builder; |
||
| 4 | |||
| 5 | Builder::macro('map', function (callable $callback) { |
||
| 6 | return $this->get()->map($callback); |
||
|
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
Loading history...
|
|||
| 7 | }); |
||
| 8 |