From 2cc9881905b27467dc6cff3df85dff5f057ec1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 17 Mar 2021 21:53:49 +0100 Subject: [PATCH] Add image --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9b6640..f9c93a6 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,9 @@ The user can easily fetch the Livewire component in Developer Tools and make a c 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. + +Screen Shot 2021-03-17 at 21 53 00 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.