1
0
Fork 0
mirror of https://github.com/archtechx/livewire-access.git synced 2025-12-12 12:24:03 +00:00

Add image

This commit is contained in:
Samuel Štancl 2021-03-17 21:53:49 +01:00 committed by GitHub
parent 8b0c2f9b78
commit 2cc9881905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,9 @@ The user can easily fetch the Livewire component in Developer Tools and make a c
component.call('getItemsProperty'); component.call('getItemsProperty');
``` ```
The call will return all of the data returned by the `getItemsProperty()` method in PHP. It will return all of the data returned by the `getItemsProperty()` method in PHP.
<img width="348" alt="Screen Shot 2021-03-17 at 21 53 00" src="https://user-images.githubusercontent.com/33033094/111536933-26f87680-876b-11eb-98c5-8b7f40f1a5de.png">
You may think that in this case, you should just make the method `protected`/`private`. However, that would make it inaccessible from the Blade template. Even though Livewire uses `$this` in the template, it's accessing the object from the outside. You may think that in this case, you should just make the method `protected`/`private`. However, that would make it inaccessible from the Blade template. Even though Livewire uses `$this` in the template, it's accessing the object from the outside.