Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| Ordered | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| bootOrdered | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Baril\Bonsai\Concerns; |
| 4 | |
| 5 | use Illuminate\Database\Eloquent\Builder; |
| 6 | |
| 7 | trait Ordered |
| 8 | { |
| 9 | use Orderable; |
| 10 | |
| 11 | public static function bootOrdered() |
| 12 | { |
| 13 | static::addGlobalScope('ordered', function (Builder $builder) { |
| 14 | $builder->ordered(); |
| 15 | }); |
| 16 | } |
| 17 | } |