Next up we have @calebporzio talking about @LaravelLivewire and @Alpine_JS

Thread ๐Ÿงต
of Livewire. Woah!
Show the small things, instead of big things.

Shoutout to @TransistorFM and @noplanstomerge
Laravel Frog, like Laravel Forge ๐Ÿ˜‚
4 areas of app that are too static and we'll make them alive using Livewire.

Select one dropdown, next dropdown should be filtered.
Faking a slow query on this page to optimize it later.

Deploy button is 4th.
A vanilla Laravel project will be converted to LiveWire project.

( Not sure I will be able to keep up with this )

Starting point ๐Ÿ‘‡
Work with only two inputs, select elements. Not the whole form.

Public property two-way binding in Livewire component.
Hiding the second select before there's any selection on first one.

When user made a selection on first one, show filtered options on the second one.

This is a common pattern.
Next he's converting Restart button to Livewire component.

--inline option will make it inline with Heredoc syntax.
Pass $server into the component. and receive it as public property.

Hot tip: Death to boilerplate. We can remove the mount() method. Livewire intelligently discover the property ๐Ÿคฏ
Restart method on click of Restart button.

.prevent to prevent it from bubbling up.

restart() method is simply sleep(2);
Buttons belong in forms. Listen to submit instead of click.

Livewire will automatically disable inputs and buttons inside that form. ๐Ÿคฏ
Let's add loading to these buttons.

wire:loading binding will automatically toggle elements, classes. It's pretty amazing!
Livewire can be used only for "one" button. Give it a try. Encouragements.
Goal: Improve Chart

Create Livewire component
More improvements with placeholder loading on chart.
wire:poll to live reload the data for chart.

poll can send many requests to server which can affect performance

you can specify second along with wire:poll to make interval bigger
Livewire supports Laravel Echo out of the box.
4th and last thing is to make this Deploy button Live-wirey.

livewire:rm to remove the component.

Component for Deploy button.
Show Deploying on Deploy during the whole process, which means, until job is finished.

unless in blade instead of if

How does the frontend know that backend has finished something?
Conditional wire:poll in @LaravelLivewire ๐Ÿคฏ

Not entirely sure how its working but demo was pretty awesome!

This is Livewire folks!

#Laravel
Livewire can be used to augment your vanilla Laravel apps and not build whole app with Livewire ( although you should ) ๐Ÿ˜…๐Ÿ˜…
Now he's selling his stuff ๐Ÿ˜… check it out.

LARACON coupon code: 25% off.

makevscodeawesome.com

#Laravel
@Alpine_JS v3 is coming soon. @calebporzio is re-writing it.
End of @calebporzio 's talk.

Great talk man! Great stuff happening with Livewire and Apline.js

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Zubair Mohsin

Zubair Mohsin Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Zubairmohsin33

17 Mar
Next up we have @enunomaduro on @LaraconOnline

He'll be telling us about Artisan Console Component

Thread ๐Ÿงต
Few projects of Nuno running on Artisan console component.
Read 19 tweets
17 Mar
Next up we have @m1guelpf on @LaraconOnline

He'll be talking about Laraveil Illuminate Foundation

Thread ๐Ÿงต
laravel/framework requires micro packages namespaced under Illuminate.
Read 17 tweets
17 Mar
Next up we have @marcelpociot

He'll be talking about Laravel Broadcasting on @LaraconOnline

Thread ๐Ÿงต
Follow along at laracon.beyondco.de

It contains some interactive examples.
Two components involved in Broadcasting. Just the communication between Laravel Backend

Everytime you shoot the shoot button confetti's happen in real-time. ( laracon.beyondco.de )
Read 25 tweets
17 Mar
Next up, we have @taylorotwell on @LaraconOnline

Thread about keynotes from Taylor's talk.

๐Ÿงต
Thanking everyone ๐Ÿ˜…
Stupid internet got disconnected. Alright, we are back on.
Read 38 tweets
17 Mar
Next up we have @bobbybouwmann who will be talking about Laravel Router.

Thread ๐Ÿงต
And now he's updating Zoom in the background ๐Ÿ˜‚
That's a good menu
Read 33 tweets
17 Mar
Next up is @christophrumpel talking about Service Container.

Thread ๐Ÿงต
Cool animation on slides.
Dinner break ๐Ÿ˜” can't live-tweet ... Just listening ๐Ÿ˜…
Read 21 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!