Skip to content

Commit

Permalink
Merge pull request #777 from vkarchevskyi/patch-1
Browse files Browse the repository at this point in the history
Fix typos on "Use with Livewire" page
  • Loading branch information
freekmurze committed May 17, 2024
2 parents 2f704f9 + ca9e6bb commit c155c9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/advanced-usage/use-with-livewire.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ requests the includes should be permanent.
It is possible to query lazy nested data objects, it is however not possible to query lazy properties which are not a data:

```php
use Spatie\LaravelData\Lazy;class LazySongData extends Data
use Spatie\LaravelData\Lazy;

class LazySongData extends Data
{
public function __construct(
public Lazy|ArristData $artist,
public Lazy|ArtistData $artist,
public Lazy|string $title,
) {}
}
Expand Down

0 comments on commit c155c9f

Please sign in to comment.