by Devin Yang
(This article was automatically translated.)

Published - 2 years ago ( Updated - 2 years ago )

Livewire is a full-stack framework for the Laravel framework.
It was the first time I wrote code, and he was probably the one who was able to write and marvel at the magic.
My colleague also marveled while writing after being pushed by me.
When I first learned Vue, I was not so surprised by him.

This article introduces how fun Livewire is through the simple operation I recorded.
Imagine that components can be reused, the back-end PHP content changes, the front-end screen does not need to be completely reloaded,
PHP variables can be directly bound to the front-end screen,

There are many more The powerful functions are not introduced in this film, so I leave it to everyone to study by themselves.

Here, I share how to upload files with Livewire through this short video. This is not a teaching video, but I believe that everyone can Google the relevant instructions for the code in the video.
Actually, there are not many things, because it is really too simple:p

https://youtu.be/JPiFGYLn5po

 

 



 

Tags: laravel laravel livewire

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


laravel

How do I upgrade the backend to Lravel 5.5

At the beginning, my background was a framework created by myself, which also uses MVC architecture, database connections and environment configuration files made by myself, including my own template syntax, until I want to support Restful, I have an idea, why should I rewrite the same function myself after others have written it, would it be better to write it out? So I started to use the framework, At the beginning, Slim was adopted mainly because it supports a lower version of php, but because Slim's twig templates are not as easy to use as Laravel's blade template...

dlaravel

Ha, I successfully made D-Larave run in the Raspberry Pi ARM environment

I bought the Raspberry Pi this time because I thought it was very fun. In addition, the Mac environment in my home is too new to compile Line Simple Beacon normally. Through the Raspberry Pi, it is easy to use, and there will be no problems in the environment. Of course, there are more applications. But as the author of D-Laravel, of course I have to come and give it a try.....

laravel,sftp

Use Laravel's Storage SFTP Drvier for remote file upload

Why do I separate the front and back of the website? My idea is very simple, that is to rely on a set of background to control all the website data in the foreground. Assuming that the front-end website is a pure marketing website, it is nothing more than the subject content, just like the article above, without any particularly complicated logic. Therefore, it is enough to set up the backend database and connect different frontends. Then there is the last question, how can my backend HTML editor post pictures directly to the frontend? Laravel's Storage SFT Driver is a good antidote.