Skip to content

Commit

Permalink
Merge pull request #408 from innocenzi/feat/macroable-lazy
Browse files Browse the repository at this point in the history
feat: make `Lazy` macroable
  • Loading branch information
rubenvanassche authored Apr 14, 2023
2 parents b50260d + e9277c8 commit d0208db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Lazy.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Closure;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Traits\Macroable;
use Spatie\LaravelData\Support\Lazy\ClosureLazy;
use Spatie\LaravelData\Support\Lazy\ConditionalLazy;
use Spatie\LaravelData\Support\Lazy\DefaultLazy;
Expand All @@ -12,6 +13,8 @@

abstract class Lazy
{
use Macroable;

protected ?bool $defaultIncluded = null;

public static function create(Closure $value): DefaultLazy
Expand Down

0 comments on commit d0208db

Please sign in to comment.