Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
abkrim
tall-skeleton
Commits
a843d781
Commit
a843d781
authored
Mar 08, 2021
by
abkrim
😀
Browse files
Events last part video +5' not work for me
parent
57c431b0
Pipeline
#479
failed with stages
in 2 minutes and 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Livewire/HelloWorld.php
View file @
a843d781
...
...
@@ -7,8 +7,6 @@ use App\Models\Contact;
class
HelloWorld
extends
Component
{
public
$names
=
[
'AbdelKarim'
,
'Chico'
,
'Man'
];
public
$contacts
;
public
function
mount
()
...
...
@@ -16,11 +14,6 @@ class HelloWorld extends Component
$this
->
contacts
=
Contact
::
all
();
}
public
function
refreshChildren
()
{
$this
->
emit
(
'refreshChildren'
);
}
public
function
render
()
{
return
view
(
'livewire.hello-world'
);
...
...
app/Http/Livewire/SayHi.php
View file @
a843d781
...
...
@@ -9,13 +9,6 @@ class SayHi extends Component
{
public
$contact
;
protected
$listeners
=
[
'refreshChildren'
=>
'refreshMe'
];
public
function
refreshMe
()
{
}
public
function
mount
(
Contact
$contact
)
{
$this
->
contact
=
$contact
;
...
...
resources/views/livewire/hello-world.blade.php
View file @
a843d781
...
...
@@ -9,5 +9,5 @@
{{ now() }}
<button
wire:click=
"refreshChildren"
>
Refresh children
</button>
<button
wire:click=
"
$emit('
refreshChildren
)
"
>
Refresh children
</button>
</div>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment