to clear the variables, there is a method reset. it works like this: $this->reset(['name', 'email', 'question', 'message']);
@ShabeebRizvi4 жыл бұрын
You can simply further with just $this->reset();
@PovilasKorop4 жыл бұрын
Thanks, somehow missed that in documentation.
@BillClinton2284 жыл бұрын
Thank you... this is very useful.
@dmdk83013 жыл бұрын
That is much better than what i ve to write in vue to reset the form. But what about nested models/arrays? Does this keep the model structure? Seems i should test it from start
@saidodanaro4 жыл бұрын
Great explanation, thank you! I think Livewire is perfect for simple data entry projects, like a simple one-step form submission.
@nabeelyousafpasha4 жыл бұрын
So we accepted this stack finally. Btw Livewire is awesome 👏🏻
@muhammadshahid15483 жыл бұрын
I want full series. Please create awesome tutorials like this one.
@VictorGonzalez854 жыл бұрын
This is great news, exactly what I was wishing for a long time, thanks livewire
@beshoymounir62544 жыл бұрын
too much requests to backend , its good for small projects , but not good idea for the developers who caring about perphormance and laravel structure , with livewire you dont follow laravel structure for requests and controllers
@chqshaitan14 жыл бұрын
You can modify how often livewire makes an ajax request to a certain degree
@gilberthg38684 жыл бұрын
Better use js library bruh
@YourAwesomePlace4 жыл бұрын
wire:model.defer="name" - it could help you. Just one request on submit
@AhtshamShabir4 жыл бұрын
Developers who care about performance don't use laravel in the first place 😁
@AhtshamShabir4 жыл бұрын
@@YourAwesomePlace Then you lose some goodies like realtime form validations. And what about the fact it recieves a full html of component instead of json responses like react or vue?
@NebsterSK4 жыл бұрын
My team at work had to choose a new front-end framework last week because we wanted to get rid of jQuery. We picked Livewire over Vue.js because we are all PHPers not really skilled in JS.
@leonvanrijswijk84094 жыл бұрын
I have tried Vue and Flutter as the front end and Laravel API as a backend. It worked but in the long run I think I will not be able to keep up with all those different technologies. So I will go back to just Laravel with Blade. I will give Livewire and alpine.js a try though as an in-between-solution
@madcoda4 жыл бұрын
it's just like the ASP .net tech in the olden days, heavily couple the view and backend together, very little flexibility on the frontend, good for people who have zero knowledge on frontend/JS
@OscarNevarezInsane4 жыл бұрын
I thought I was the only one seeing the similarities.
@johnwesley20903 жыл бұрын
Just abandoned .net altogether during the evolution.
@iWaxxy4 жыл бұрын
I've been wanting to use Livewire since before version 2 came out, but I need to start a new project using just that, and that's not happening until I'm done with the project I'm working on right now. Thanks for the video, as always very informative. -Khalid
@pietrosavastano99403 жыл бұрын
Thanks povilas you have a great following here in italy!!
@LaravelDaily3 жыл бұрын
I've had a few clients from Italy, wonderful people :)
@EnamulHasanthatsenam4 жыл бұрын
We want more livewire tutorial.
@JoshDanns3 жыл бұрын
Your videos are super amazing. You explain stuff pretty well! Thanks a lot for the videos
@LaravelDaily3 жыл бұрын
Glad you think so!
@adnanshoukat23004 жыл бұрын
my only conern about the livewire is it sends more requests on the server .I know it can be handled by debounce/lazy but again it's sending more request then vue.js
@tanzimibthesam58614 жыл бұрын
Though he gave example of GitHub but I don't think GitHub but I don't think it should be a good comparison. Yup http requests for everything almost.
@nkrumah20004 жыл бұрын
Livewire V2 has new way of binding ( wire:model.defer) That way you only send the request when you click to submit the form
@Satheeshkumar-dv1uu4 жыл бұрын
In cases where you don't need data updates to happen live, Livewire has a .defer modifer that batches data updates with the next network request.
@AhtshamShabir4 жыл бұрын
@@nkrumah2000 Then you lose some goodies like realtime form validations. And what about the fact it recieves a full html of component instead of json responses like react or vue? That results in larger response sizes.
@tanzimibthesam58614 жыл бұрын
@@AhtshamShabir wt about SEO is Livewire SEO friendly?
@VimKanzo4 жыл бұрын
This is amazing. I see great hope for livewire
@davidson78384 жыл бұрын
I will definitely go with livewire
@vincej1514 жыл бұрын
I think a popular misunderstanding is that Livewire is a potential replacement for Vue. It is not. It delivers reactivity in a beautiful way, yes, but it does not provide for managing loops and DB calls. That still is undertaken within Laravel. A major benefit perhaps?
@wulfheart54754 жыл бұрын
@vincej151 what exactly do you mean by "managing loops" and "DB calls"?
@impulserr4 жыл бұрын
and also it is replacement for js framework, why would you use livewire and then additionally install js framework? That makes no sense.
@vincej1514 жыл бұрын
@@impulserr It is great for reactivity and substituting for Ajax. Go and watch the author of Livewire on his website. Caleb's own video tutorials state that this is not a replacement for Javascript or Vue or JQuery for that matter.
@vincej1514 жыл бұрын
@@wulfheart5475 if you would like to understand this, start here, it's not hard: www.w3schools.com/php/php_if_else.asp
@vincej1514 жыл бұрын
@@impulserr Livewire is very good at what ti does, but it does not do everything you need in the front end. You don't need a JS frame work. Just JS.
@chqshaitan14 жыл бұрын
Livewire is great, ive not actually used it myself, but i have watched a few introduction videos, and with me not really getting into the front end jscript frameworks, this will make it a lot easier for me to bring the front end into 2020
@toomass26684 жыл бұрын
Hei, very nice examples. I do get the point of livewire and it looks good, but .. imagine you have form with 10 fields, do I understand correctly that livewire would do 10 api calls just for 1 update? So if 100 people update form at the same time it is almost as if 1000 request was done. I can not see the benefit of that. Can you explain that more in detail? Maybe I just do not understand it
@PovilasKorop4 жыл бұрын
There are ways to make fewer API requests, use different events than in this example. But generally yes, there's a risk of too many API calls.
@wulfheart54754 жыл бұрын
@@PovilasKorop But this risk also exists when you are using jquery. It always (!) depends on the implementation.
@EnamulHasanthatsenam4 жыл бұрын
There is a pretty simple way to handle this.
@Dennis-wf9qu4 жыл бұрын
You could use wire:model.defer to keep it at a minimum
@373323 Жыл бұрын
Yay, the very best. more LiveWire please :-)
@AhtshamShabir4 жыл бұрын
It sends way more requests than vue or react. Another downside is that it has to download a full html page in response and then diff the changes while other js frameworks just get json responses. Way more requests and bigger response size. I personally haven't used livewire so I'm not sure if it handles client side validations and routing. It definitely has its place for small projects. But for bigger projects, it abstracts away a lot of necessary control.
@vitormicillo12 жыл бұрын
I really really like this video, awesome Povilas
@ajithlal16884 жыл бұрын
I'm giving a try on livewire on my new project. I was using vue for reactivity on my website. But when I go through the documentation of livewire I feel like I wont regret using it.
@dogwalkinginc63713 жыл бұрын
I was skeptical at first (and also annoyed) when I saw that 8 shipped w/ Jetstream/Livewire. But I decided to dig-in and try it, and so far I've been nothing but impressed. It's one thing to shout about theories of its poor performance. it's another to actually use it first hand and judge with facts.
@markbarton68454 жыл бұрын
Great video! I would like to see you do a Laravel Nova and custom admin templating. For example I always find it difficult to make the admin panel my own with out all the quirks in Nova and the docs can be a be unclear at many key moments leaving you clicking back and forth through the docs trying to find he missing step.
@PovilasKorop4 жыл бұрын
I'm not planning to make reviews or customizations about PAID products, because it would be useful for only small amount of my audience who purchased that product. Nova included.
@markbarton68454 жыл бұрын
Povilas Korop ok I can see your point and understand , it was just a suggestion as no one seem to be doing this type of video. I can’t even find it on paid learning coding platforms but Laravel seem to be pulling it a lot still hence why I suggested it. Anyway keep up the good work I enjoying your video content that you are creating. 😎👍🏻
@PovilasKorop4 жыл бұрын
@@markbarton6845 To be honest, I've read quite a lot of similar comments about Nova, that it's hard to customize, so personally, I wouldn't recommend it as a solution. Of course, I'm biased as a QuickAdminPanel creator :)
@markbarton68454 жыл бұрын
David Basil sometimes it about time and budget. Nova is very good on small projects. It gives enough out of the box to get you about 90% of the way in not much time at all. For this I found it to be very good. However when you want to be more bespoke about your admin styling the grey areas of the documentation leave you in a guessing game. I put this down to me not understanding aspect of the docs and how to apply them rather than pointing my figure at the package.
@Mauriceereee4 жыл бұрын
Wow as a back-end software developer this really does sound interesting. I can't think of how many times you have to work with javascript to make something reactive. I will definitely do more research, and I am looking forward to more videos about this stuff!
@Tux0xFF4 жыл бұрын
Me too, i was very interested in this new library that stays on the backend and not worry too much about JS. Im in the process of rebuilding a CMS with Livewire and then Inertia.js, just want to see which side is more efficient because both are server side with the only exception that Inertia uses Vue, React or Svelte but only for the views, the rest is all Laravel backend which passes the data to the views. Im planning of releasing both of these CMS'es as public git repositories which some might find useful.
@Mauriceereee4 жыл бұрын
@@Tux0xFF Nice man! I'd be very interested in seeing the results
@BernardBAILLY4 жыл бұрын
I work with livewire, very simple, clean an productive. But... The mess arrive when you want to embed some other library as ckeditor, tinyMCe, select2 etc.. and nested livewire component. As for now for me it doesn't work !!!
@chqshaitan14 жыл бұрын
you can use wire:ignore, that way when livewire parses the page, it wont change the child html/jscript in the div
@dogwalkinginc63713 жыл бұрын
was that point really worth three exclamation marks?
@BernardBAILLY3 жыл бұрын
@@dogwalkinginc6371 For example, i can not make working leaflet map library as i want. i have a step by step form make with livewire at the first load on the first step all is good the map is created and displayed by leafleft, then if i go forward to the second step then backward on the first step , the map dissapeared and can not be recreated again. I known is not for all a livewire problem. But more generally for me the difficulty is that livewire reload all the dom for the concerned compoment and destroy content generated by other libraries and sometimes not easy to make all the pieces dance together.
@dogwalkinginc63713 жыл бұрын
@@BernardBAILLY I just watched this screencast(laravel-livewire.com/screencasts/s4-rich-text) and walked through everything and have trix rich editor up and running perfectly. Caleb explains what you need in order to make javascript not conflict w/ Livewire.
@arunabraham93823 жыл бұрын
@@dogwalkinginc6371 reminds me of jQuery days
@boysue91033 жыл бұрын
Very clear. Very good example. Thank your very much. Use Livewire more easy.
@windxtech43699 ай бұрын
Very good! Thank you
@LoganathanNatarajanlogudotcom2 жыл бұрын
thanks for the wonderful explanations, keep doing...
@philippej3 жыл бұрын
Great comparison, thank you! But there is a fifth way you could test. Basically progressively enhancing the "web" version, using htmx (successor of intercooler) or for an even more impressive "no code needed" option, unpoly : unpoly.com/ Quick howto with unpoly: - Read unpoly.com/form-up-target - For a quick test add unpoly to your project using a CDN unpoly.com/install/cdn - Add some class to the .card that contains the first sample something like - Update the of this sample to be like : And voilà, same reactivity as the other examples without altering your code, and works with and without javascript enabled in the browser. Easy-est to write and maitain. If you want I create a pull request for that on the repository. Unpoly is the unpopular hidden gem you might like to discover. It has been written to make long term, maintainable web applications. I'm not affiliated with it, I'm just a huge fan :-)
@JGBSolutions4 жыл бұрын
Psst! Wanna know about something better? Try Phoenix LiveView. LiveWire was actually inspired by it in the first place, and it uses websockets instead of AJAX, so it is a lot faster. But to be fair, if someone already knows PHP/Laravel then stick to LiveView, but if one wants to learn Elixir, a new functional language that powers Phoenix and LiveView, then give it a try. I'm using both frameworks/languages on different projects nowadays. It's faster than Node.js too if you are curious.
@thatsenam91834 жыл бұрын
Liveware is love
@AksoomHussain78663 жыл бұрын
what will impact the performance of the application as PWA livewire vs Vue vs jquery?
@thiagomiranda79874 жыл бұрын
Thanks for this great information. Amazing way to explained it.
@yuliarahma13004 жыл бұрын
plis laravel 8 inirtia + vue CRUD and auth role
@hamidimomov2324 жыл бұрын
Yes, it would be good if the author makes a video also about Laravel + Inetria.js.
@fadllabanie89874 жыл бұрын
greet video we need more about livewire plz
4 жыл бұрын
Cool, I need to try it later. Thanks.
4 жыл бұрын
i think livewire is very backend developer oriented but not end user oriented, since the performance is gonna be deeply affected
@natnaelmulugeta1014 жыл бұрын
Livewire is awsome.
@nkrumah20004 жыл бұрын
I have been using Livewire for a long time, and if you use ir with alpinejs you can do everything
@borisoffdenis4 жыл бұрын
I don't familiar with Laravel, but is there way to create a custom client-side validator with Livewire?
@warwarrior03 жыл бұрын
Thank you for this video. If I want to do simple I will go for easy and looks like livewire is easy to implement. But this Vue Livewire jQuery and others stufs depends our needs. I'm using jQuery for little things sometimes. If I want to more complex structer I'm not using jQuery. Because thats really hard to code and manage. If I want to more complex app I will use Vue or similar. Depends our needs I guess.
@sudhirdhawle53704 жыл бұрын
thank you
@artisticdeveloperad21273 жыл бұрын
Awesome tutorial.. thanks a ton !
@haroldpepete3 жыл бұрын
great explanation, thank sr
@DeepakSharma-hl2lz3 жыл бұрын
Very nice tutorial sir
@user-zg1pc6md6y3 жыл бұрын
Очень полезное видео. Нам действительно не нужны абстрактные примеры. Реальные примеры наглядно демонстрируют выгоду Livewire для Laravel программиста
@ivan_adamovich3 жыл бұрын
thank you for your explanation!
@andresmisiak3 жыл бұрын
Really Excelent, Thanks
@josephmakram43424 жыл бұрын
In general it looks awesome, but this not good because it handle all js underneath the hood for someone intreseted to write his logic with it's requrement i don't think it would be a good choise otherwise it's really awesome
@PovilasKorop4 жыл бұрын
Yes that "hidden magic" of JavaScript is what also scares me, that's why, in my opinion, Livewire is good for some small components, like this form, but not for something that would potentially require custom logic.
@josephmakram43424 жыл бұрын
@@PovilasKorop yes you are right it would be good for small business
@btm14 жыл бұрын
@@josephmakram4342 small business and customizations are not the same thing
@josephmakram43424 жыл бұрын
in most cases in small business there no much customization
@tanzimibthesam58614 жыл бұрын
@@josephmakram4342 I also think it can be used for blog or simplistic crud projects but it has a easier learning curve . But I believe we can learn both
@devmanlive4 жыл бұрын
Awesome love livewire
@Talkinglife4 жыл бұрын
Nice
@nicuticu3 жыл бұрын
Holy moly ... sign me up!
@surojmaharjan54674 жыл бұрын
nice tutorial. thanx sir.
@OAzraai3 жыл бұрын
Excellent!
@JoseDlucca3 жыл бұрын
Livewire is very interested, but i think is not matute enought yet. I was using it in a production project and things where broke when updating livewire versión. Also if your not carefully you may end up with too much ajax requests
@Slavec54 жыл бұрын
Thanks for a video, but how we can use requests to our custom api methods with livewire?
@kamalshkrie18074 жыл бұрын
Very nice thanks
@hugo-abdou4 жыл бұрын
is so hard for server side to handel 4 request onli for a contact form
@Tux0xFF4 жыл бұрын
it doesnt need to be 4 requests, just one, with the defer option which executes on click submit
@iamdestonian20293 жыл бұрын
Thank you!
@pauloclara47643 жыл бұрын
For database propose should i use inertia ou limewired
@hafiznugraha30634 жыл бұрын
sorry livewire. i just marry laravel and vue js
@gessegoncalves64934 жыл бұрын
kkkkk
@delvinlotusiana27044 жыл бұрын
See my comment
@Tux0xFF4 жыл бұрын
You are using Inertia right? if not, your working too much. Livewire is the baby of Laravel+Vue
@moltobene15283 жыл бұрын
@@Tux0xFF Nested components in Livewire are not reactive like props from a Vue component so... What actually does it mean? It can put off people.
@adrianonetto3 жыл бұрын
@@Tux0xFF livewire is great for a local project, but for a project with multiple access and a not so great server the ajax request for reactivity is terrible. They want you to use alpine to make things client side and... Well... It's not so good. Plus, livewire is just for laravel, if you someday need to use laravel as API or use another framework it can hit you hard, so it's good to learn and use vue/react/angular nowadays
@chuksokwuenu34354 жыл бұрын
Can livewire be integeated with HOT RELOAD like React JS?
@code.with.martin4 жыл бұрын
Please, next video, how to add jetstream (Inertia + Vue) to live Laravel project upgraded to Laravel 8. :-)
@PovilasKorop4 жыл бұрын
There's no way to ADD jetstream to an existing project, it's not the purpose. Jetstream is a project STARTER, like "laravel new" installer.
@code.with.martin4 жыл бұрын
@@PovilasKorop I think, its not so easy, but is definitelly possible.
@zayR64 жыл бұрын
I started to use livewire, I think it's a great tool but there are some certain limitations which I am still discovering. Like not being able to store a collection as a public property or to render different views with data. I think and would love to see a video on all these limitations and how to overcome them.
@Tux0xFF4 жыл бұрын
Stay tuned, more changes are coming, the creator of Livewire Caleb will certainly expand this to more possibilities, the v2 already had many improvements, and who knows it may even be part of core Laravel because Taylor also loves this library, and Caleb loves to solve impossible problems, thats what drives him to create these awesome libraries
@anatoliy14352 жыл бұрын
спасибо
@dmdk83013 жыл бұрын
First i gave up with nuxt. At first it was wow, vue with ssr. Later i've lost so much time installing plugins, tons of npms... now vue is at the same stage. Small projects but to the end i have hundreds of files and i dont remember what ive done 2 weeks before. Great things of vue die while data transfering back and forth to server. Data transformations, array loopings, mapings etc in order to pass it to new superhandymobilefriendly vue-component. Last days i want videos on livewire. If it is ready to simplify data transfers... the only trouble - while you learn livewire, there will be laravel 9 with supernewawesome verylivewwire and from the very beginning) sorry for emotions. Crying when look my first site with flash buttons written in notepad. Index.txt save as .html. later php. And basic txt editor was enough to build anything....
@mehranreyhani60374 жыл бұрын
Omg this is rlly great 😍😍
@yazidthedev42814 жыл бұрын
I use livewire, but sometimes you to use alpine js with livewire.
@aoukrad4 жыл бұрын
Best channel
@isaacmontielsanchez15093 жыл бұрын
real crack!
@asifm35204 жыл бұрын
Does that mean if we know vue then livewire is not required? Can you please specify correct use case of livewire in real time application?
@josephmakram43424 жыл бұрын
livewire is made in my opinion for people who don't like ineract alot with javascript otherwith i think vue will give you more powerfull options
@tanzimibthesam58614 жыл бұрын
Vue better but Livewire is a bit more simplistic
@PovilasKorop4 жыл бұрын
It's a philosophical question, to be honest. What are you MORE COMFORTABLE with? If you are happy with Vue, you don't need Livewire. But if it feels that Vue is too much work for you, Livewire can make SOME stuff much easier. In my opinion, Livewire is mostly for those back-end developers who haven't really started much with Vue because they don't like JS, and with Livewire they don't need to write JS anymore at all.
@tanzimibthesam58614 жыл бұрын
@@PovilasKorop And also Vue is a more transferable skill. We can only use Livewire with Laravel but if we work on other frameworks we can still use Vue
@PovilasKorop4 жыл бұрын
@@tanzimibthesam5861 Great point. Livewire is more like a helper for Laravel developers, it's a Laravel package after all.
@manuelsamudio14684 жыл бұрын
the TALL stack is really powerful
@Tux0xFF4 жыл бұрын
only thing that i really dont like is Tailwind, so i use the BALL stack, which uses Bootstrap
@LucianoOliveira-zq8vk4 жыл бұрын
Excelent
@TokyoXtreme4 жыл бұрын
Nice.
@webkoth61053 жыл бұрын
Каким расширением пользуетесь для автозаполнения полей форм ? Спасибо
@ug11353 жыл бұрын
addons.mozilla.org/ru/firefox/addon/fake-filler
@ZZZMixzzyZZZ4 жыл бұрын
Maybe build chat or notifications popups in livewire + pusher + echo on SPA
@oliahmed6093 жыл бұрын
I have just learned react. Should I go with react and laravel or learn live wire please suggest me.
@zHqqrdz3 жыл бұрын
Try and learn both, and learn Vue too :) Each tool has its use.
@ehsanbagherzadegantalkhoun14793 жыл бұрын
Please create a video about Voyager
@akashthoriya4 жыл бұрын
Please make tutorial for laravel resources API
@PovilasKorop4 жыл бұрын
What exactly is not clear for you there? Actually, I have a separate course on APIs: laraveldaily.teachable.com/p/how-to-create-laravel-api
@akashthoriya4 жыл бұрын
@@PovilasKorop That's great but I'm talking about this - laravel.com/docs/8.x/eloquent-resources#resource-collections
@PovilasKorop4 жыл бұрын
@@akashthoriya Yes, that collection API resources are part of my course. Also, I'm not sure what can I make a tutorial about, if the documentation is pretty clear on that topic.
@tatendawilson30574 жыл бұрын
Please may u do livewire tutorials maybe on laravel diary
@ihtishamahmad654 жыл бұрын
Need suggestion. I am not familiar with vue at all. I have used jquery all the time. Now I want to start working in vue or livewire. Which one should I go for?
@PovilasKorop4 жыл бұрын
First, try Vue. It will get you better job positions in the future. Just TRY. If you really dislike it, then try to replace it with Livewire.
@ihtishamahmad654 жыл бұрын
@@PovilasKorop thanks.
@mannumannu92003 жыл бұрын
React is best for job purpose
@EnamulHasanthatsenam4 жыл бұрын
Livewire is awesome. You should make a seperate video on livewire instead of comparison.
@Satheeshkumar-dv1uu4 жыл бұрын
🔥🙏
@Tux0xFF4 жыл бұрын
But you are Livewire, right? if not, Caleb will delete all your livewire videos
@impulserr4 жыл бұрын
I don't see reason to use livewire in real app. If you don't know any js then using livewire won't teach you anything, in other hand if you know, there is no reason to use livewire.
@Tux0xFF4 жыл бұрын
Isnt faster than building a SPA? where you have to deal with creating an API, then Auth if its needed. Livewire is reactive. There is also another adapter called Inertia which cuts a lot of bs that involves building an SPA, which is flawed because you have to work so much more , unless it serves mobile, web and other services then its ok, but for a website, a CMS, a CRM where most of the time SEO is important and everyone knows that SPAs built in the classical way have always had that problem, its been years already and the problem remains, there hacky workarounds for it but its just doesnt feel right.
@muhammadtariq74744 жыл бұрын
Seems to be safe Laravel developer with Livewire as compare to VUE JS
@codingmonkey20034 жыл бұрын
with livewire, it's no more Model View Controller **its Model (View + Component)**
@be-kreidly15154 жыл бұрын
good information, but very rapid. especially that this is a new tech
@MiceDevelopment4 жыл бұрын
personally I don't like livewire because it will request all the changes to the server. if your traffic is not very high then it will make sense to use it but if your site is a high traffic site, it will burden the server surely
@imedtech12564 жыл бұрын
livewire series plz
@the2worlds4 жыл бұрын
No thanks, I prefer to move as much as possible to the frontend and leverage the users cpu resources than my own.
@qAntBcn4 жыл бұрын
imho the vue is more useful because may be some day you will work with javascript + vue, and its very popilar so its a plus for your cv. Also its more easy to person who is more familiar with javascript it self. But if some one is more backed php guy, probably they will stick with jQuery and livewhire
@dipeshmagar98044 жыл бұрын
Can some give me some examples using ssr in Vue spa
@Tux0xFF4 жыл бұрын
all JS frameworks suck for SEO related apps, its the wrong solution to that problem.
@tanzimibthesam58614 жыл бұрын
Waiting for famous blade+ jQuery enough comments
@PovilasKorop4 жыл бұрын
Wait wait, waaaait. You need BLADE? :O twitter.com/levelsio/status/1308145873843560449
@hosseinhaghparast56703 жыл бұрын
was better to say smth about advantage or disadvantage to use livewire
@delvinlotusiana27044 жыл бұрын
Try upload multiple big videos using Livewire, and see how it works No client side preview (BEFORE UPLOAD): createObjectURL + video n canvas element, which is really easy and faster But the fact is Livewire "instantly" upload selected files whenever input files is changing Example case I want to upload a video with size +-200MB, with my smartphone, currently in that moment, my phone connection is not really good So what happen next? i have to "idle" in the upload form / page for few minutes (since my connection is bad) just to see what I have uploaded ($f->temporaryUrl()), this is not a good UX, then, if I want to change the video (Cancel the previous video), then again, I have to wait again for few minutes for simple preview?????? Really??????? Nope nope and nope, just nope I knew they provide JS function for manual upload, but still, nope and thank you, I'm sticking to Laravel n Vue
@ivantan2224 жыл бұрын
Thanks for pointing this, I have the feeling that it would be limited or could have some issues because it just looks a "cool" tool that isn't really well-thought. I will save my time from learning it.
@delvinlotusiana27044 жыл бұрын
@@ivantan222 for small project its good, but in large scale app, no, IT IS NOT My advice is, for long-term website development, you should use something that has wide range community support, so in the future, you don't have to change many things for your future requirement, Vue is already easy to learn, its not gonna hurt to learn it, there are tons of plugins for Vuejs framework
@ivantan2224 жыл бұрын
@Gwein Lotusiana Yeah, I agree. Moreover, I often find a project that looks easy at the start, so we might be interested in a simple tool like this Livewire, but when the project goes bigger it will be much more complicated if the tool can't support or becomes the technical barrier.
@delvinlotusiana27044 жыл бұрын
@@ivantan222 indeed For me, if I ever need to update my features, etc, I don't have to "entirely" change everything, and go through learn process, trial, and error all over again That's why I choose to stick with Vue And another example, for Laravel Eloquent If ur model record is still below 50k - 100k records, it is still good using eloquent But when you reach > 200k records, you should start using Laravel Query Builder 1. stackoverflow.com/questions/58314420/laravel-eloquent-vs-query-builder-pros-and-cons 2. medium.com/@abad.developer/laravel-eloquent-vs-query-builder-why-use-eloquent-to-decrease-performance-5aa17bed358a 3. (PDF) www.google.com/url?sa=t&source=web&rct=j&url=www.diva-portal.org/smash/get/diva2:1014983/FULLTEXT02&ved=2ahUKEwi0vPzvyYjsAhXJAnIKHXKLCVcQFjAOegQIARAB&usg=AOvVaw3Dz7Dk8x6LzIOFbzvp8zhW&cshid=1601183897129
@tanzimibthesam58614 жыл бұрын
@@delvinlotusiana2704 btw should I use nuxt for SEO or Vue would you enlighten
@JoshuaKisb3 жыл бұрын
weird to find actual web developers trying to avoid javascript. stop fighting the inevitable. be more efficient livewire is inefficient without learning whats going on behind the scenes and putting in extra work to improve it
@axeman26383 жыл бұрын
looks like a godsend, javascript is a nightmare.
@WillanCorreia4 жыл бұрын
Livewire +
@vovkko4 жыл бұрын
Livewire sucks. a developer who locks on one stack will never be better than a developer who learns new things. vue expands consciousness, while livewire looks like a crutch for those who have not mastered vue
@andy.robinson4 жыл бұрын
You make the assumption that Vue is the best alternative. And then presumably whatever JS framework supersedes Vue in the next few weeks/months will become the new best alternative and so on and so on. Personally I'm still on the fence with Livewire, but I welcome the option to remain within one stack. It's a "jack of all trades" vs "master of one" situation. But a "better developer" to me is one who gets the job done quicker, cleaner and simpler - not just one who knows more ways to skin a cat.
@EnamulHasanthatsenam4 жыл бұрын
@@andy.robinson you are right
@Tux0xFF4 жыл бұрын
You couldnt be more wrong adminko. Why are you even here in a Laravel channel? Its like someone from the Laravel side comes to a Vue channel and talks shit about why are you using this small library for backend , it is a crutch. Laravel is a whole ecosystem, is a fullstack framework, no other framework achieved what Laravel did, JS is just a helper for Laravel, its a la carte menu to enhance some parts of it, do you think the world revolves around SPAs? Are CMS's, CRMs, ecommerce, and web applications in general all built with Vue or any other JS framework? Each tech stack have its own uses, only hipsters put JS frameworks on everything, even in their salads and their laundry detergent. What happened to the Deno hype? where did the hipsters go?
@JoshuaKisb3 жыл бұрын
you are very right
@krozaine4 жыл бұрын
Blade was just enough functionality at the backend. Livewire doesn't have any future, especially with introduction of much simpler and efficient jQuery alternative (Vuejs) for years to come.
@JohnSmith-zl8rz3 жыл бұрын
Actually I prefer avoid Livewire and go pure with Blade.