This type of tutorial is what i want. Straight to the point
@sebot13 жыл бұрын
My God... This video should called like "Understanding the Laravel+Vue+Api in 22 minutes". This is the first vid in a million that i watched and understood all of the main point of these two frameworks. Just awesome!
@hamdaniash-siddiq50214 жыл бұрын
You are really the best teacher of laravel. U make things clear by doing simple things.
@Sdirimohamedsalah Жыл бұрын
Great! 99% of tutors don’t cover building project
@manishprabhakaran15613 жыл бұрын
Your heart can hear exactly what beginners are suffering from....and you serve the needs. Thank you very much🙏 for the clear cut video you've done🏆. Continue with your good work. Good luck.
@peo62644 жыл бұрын
From the bottom of my heart, thank you, honestly, a big thank you! You once again helped me so much! I work hard on a project and am REALLY struggling sometimes, but your videos are awesome, they're giving me hope, it keeps me motivated, it makes me wanna keep on trying and moving forward. I will definitely subscribe to your courses to support you and what you are doing ! Best regards
@gojamoja67192 жыл бұрын
You are a blessing for laravel learners
@shabastech Жыл бұрын
the best 💯 so far
@mauriciosorto81634 жыл бұрын
Great stuff! I have been researching about this matter, and found a lot of videos but yours is the most clear and simple to understand. Really, really good content, thanks!
@LaravelDaily4 жыл бұрын
Wanna dive a bit deeper into Laravel + Vue? I have a full 2-hour course with a practical project "Vue.js 3 + Laravel 9 SPA: CRUD with Auth": laraveldaily.teachable.com/p/vue-js-3-laravel-9-crud-with-spa-and-auth?
@muhammadharis-lo9nv2 жыл бұрын
Hi sir can you make tutorial review product laravel vue js pusher
@BradleyAhrens4 жыл бұрын
Thanks for the video, Pavilas! Just wanted to note that you can also just run `npm run watch` instead of `npm run dev` each time. 😉
@MohamedZiada4 жыл бұрын
@Povilas Korop , Thanks for the video, Or u can `npm run dev` without each time run `npm install`
@tallaljamshed48804 жыл бұрын
I find your explanation quite easy to understand. It will be much appreciated if you could make a tutorial series on vue.js.
@PovilasKorop4 жыл бұрын
Thanks, will think about it.
@bogdanmarian37864 жыл бұрын
Thank you for having the patience to explain every step, this is a great tutorial !
@remorechtzen51633 жыл бұрын
Watching your videos is the best way to learn. Thank you very much!
@mydublue3 жыл бұрын
Very nice, view from the top to the key point instead of too much unnecessary details. The great point is it explains the relationship between blade and vue.js. Thanks
@adriennecool693 жыл бұрын
You are the best!! Thank you so much for this amazing tutorial. Developers like you are responsible for the success of so many other developers!
@VadimBesedin4 жыл бұрын
Clear and straight to the point. Thank you for your time and for sharing your knowledge!
@emersonslvm4 жыл бұрын
Pretty nice video! Congrats, from Brazil 🇧🇷
@gurbeigekolekter88313 жыл бұрын
I love watching your videos. I hope you'll create one similar to this for Vue 3 in the future, if you have the time.
@the_coding_traveller6 ай бұрын
actually made a tutorial that made me motivated to learn it. just simple and clear! Thank you for the good work!!
@windigo0003 жыл бұрын
15:18 - consistency 😁 1) data: function() { ... 2) mounted() { ... I am paying attention sometimes :P
@mwacharojohn9318 Жыл бұрын
thank you saved me .several concepts in one video
@aronpop14473 жыл бұрын
Straight to the point man. No bs. Subscribed.
@Jes14-t3b3 жыл бұрын
I'm motivated now to learn SPA with Laravel and Vue, thanksss.
@lakmalp4 жыл бұрын
It was super simple to understand yet informative and to the point
@onessimuslyngdoh2894 жыл бұрын
Npm run watch and you don't need to run npm install everytime
@Formula7Driver3 жыл бұрын
npm install isn't needed in any case, it's enough to run it just once. npm run watch actually removes the need to run npm run dev multiple times
@angelo.piletti3 жыл бұрын
Excelente vídeo! Então eu não preciso fazer nenhum tipo de intalação npm ou composer para usar o vue no laravel ^8.x?
@topmemesforyou58483 жыл бұрын
Thanks for this video, please do more on Vue.js + Laravel
@Imagine512044 жыл бұрын
I just starting reading about vue two days back and now this helps me alot as I already know laravel. So basically mounted here stands for on ready similar to Jquery Thanks
@hesami13 Жыл бұрын
It was simple and comprehensive.❤ Please make a video about livewire and its difference with VueJS in laravel. Is it necessary to go to VueJS even though there is livewire? And their relationship with AlpineJs
@Michel395114 жыл бұрын
Good tutorial, but you should put API calls in created, not mounted. Created is ran when the component is alive, mounted is ran when the DOM of the component is rendered.
@ciaranslemon834 жыл бұрын
Really really well presented tutorial. Great pace, easy to follow and clear!
@403gtfo4 жыл бұрын
Awesome video. I really needed a refresher in Vue, been 6 months since I used it with laravel. Should just be able to use 'npm run watch' to have it compile after every save automatically yea? Saves having to manually run the commands :)
@LaravelDaily4 жыл бұрын
Yes, good catch.
@hinafraz5284 жыл бұрын
only understood your lecture, thanks, man. you saved me a lot of time.
@caio.osalchesttes87913 жыл бұрын
O tutorial que eu precisava! O brasil te manda um beijoo
@KastsEcho2 жыл бұрын
One change I'd make is wrap both method calls in the mounted function within a try catch block, and then set loading to false. that way, you'd ensure both api calls loaded before rendering.
@woutervisser59873 жыл бұрын
Great tutorial! Thank you! If you run in to a problem with the application not renewing. Check your cache. Quite obvious but I didn't think of it myself :D
@francisco256573 жыл бұрын
This video is gold
@masterpreshy96143 жыл бұрын
Best Teacher!
@АлександрАболмасов-т5е2 жыл бұрын
Я Английский сюда захожу подучить =) Идеально произношение! Спасибо!
@MrDLashley4 жыл бұрын
Hi Povilas , Great tutorial, and I was wondering if you were going to follow it up with an insert / update example
@PovilasKorop4 жыл бұрын
I didn't plan to, but seems like the audience want more content about spa and Vue with Laravel, so yes will figure something out.
@hasanchishti64283 жыл бұрын
You are a real Hero. Thank you for this amazing video
@KangJangkrik4 жыл бұрын
I'm using both, for product listing blade is better and dynamic widgets (like graph and chart) only possible with vue. Perfect combo 👌
@PL4YR3 жыл бұрын
I would be super interested in a video over the depths of statically including a model over importing through a constructor, really curious about the pros and cons of it
@eleadnetworks38763 жыл бұрын
I love this. very straight forward and understandable. Thanks. I will like to get a full course on Laravel, vue, Laravel vue. I don't mind paying
@jaker90072 жыл бұрын
Huge thanks mate! Saved me a lot of time!
@69aantu4 жыл бұрын
I find your explanation quite easy to understand. thanks. One question please, api return as { "data" : [ ] }. is it possible, return as { "categories" : [ ] } ? that means "categories", "products" instead of "data".
@halilcakar51574 жыл бұрын
Hey, yes it's possible. You can see on laravel.com/docs/7.x/eloquent-resources#data-wrapping from laravel source :) And you can even disable it too =)
@69aantu4 жыл бұрын
@@halilcakar5157 thank you very much. I got it. $wrap.
@LaravelLover3 жыл бұрын
Very clear explanation from scratch. Can you please tell me why some peoples are using Vue project and laravel project separately, they can fetch the backend info from the Laravel and get into the vue using api endpoints. What is the reason behind the scene, what is good practice to create the large application, Create a single application containing vue and laravel or separate applications for both?
@PovilasKorop3 жыл бұрын
From what I've seen, that separation of the project happens in bigger teams when there is a separate person/team working ONLY on the front-end and works with only their part of the project, also if there's a mobile app involved or a bigger structure, then it's worth creating separate repositories. Otherwise, one single application is fine. But generally, it depends on how it is more convenient FOR YOU, not just "following good practice".
@LaravelLover3 жыл бұрын
@@PovilasKorop Thanks Now I understood clearly.
@edmartinez53454 жыл бұрын
Thank you so much. Please keep generating great content! Cheers to you.
@nabeelyousafpasha4 жыл бұрын
Looking forward to your more videos relevant to VUE. Respect from Pakistan 🇵🇰
@Daily-digital3 жыл бұрын
grateful to You. Can we have a series of laravel 8 + react/vs with any live project tutorial...
@niketjoshi58774 жыл бұрын
Hey, you are doing exceptional job by teaching us good stuff in latest framework. I would like to tell you could you please make vue js tutorial videos with laravel. From basic to advance level so user who know laravel but not vue js can learn that from your video and example like you make. Hope you provide such a good solution for this.
@PovilasKorop4 жыл бұрын
Thanks, will think about it.
@daviddeleon34114 жыл бұрын
@@PovilasKorop I love how php master teach us js thank you sir
@sfrzid4 жыл бұрын
That's loading state to false should be in finally scope, bcz when request failed that loading still show forever
@aqshalzakki25264 жыл бұрын
yeah in finally block, but that should be just fine for starting point
@ajithlal16884 жыл бұрын
I was waiting for this video. You are awesome
@jmahachi3 жыл бұрын
Firstly, many thanks for the great tutorials! Secondly, I wanted to know if it is possible to separate code from HTML in Vue.js with Laravel. For example, with Angular you have the .html file and the backend .ts file.
@taiwoolatmi35944 жыл бұрын
This is awesome tutorial, taking Vue like slicing cucumber with sharp knife, Very straight forward, We appreciate you so much, Pls help Us with a vidoe on the explanation of the vue Pagination part.
@indrajitdas95953 жыл бұрын
Hello Sir, your videos are awesome . I have a question on axios .How I can use a laravel named route in axios ? Instead of URL?
@davidsyengo18933 жыл бұрын
instant sub, great work, vivid explanation.
@bhubanmalek45894 жыл бұрын
thanx man.. one of siplest tutorial... just at point...
@aungminhein2178 Жыл бұрын
Easiest to understand ever
@mateuspokemon014 жыл бұрын
Great! That's exactly what I needed! Thanks for sharing!
@sagytt3 жыл бұрын
Greate Video! You know how to pass knowledge very efficiently.
@JohnSmith-zl8rz4 жыл бұрын
I prefer this way than Inertia or Livewire, thanks!
@MichaelBrown-vq4fd4 жыл бұрын
thank you for another great tutorial. Really helps us beginners out.
@dennisreetz84923 жыл бұрын
Great tutorial! Thank you. Straight to the point.👍
@arslanramay4 жыл бұрын
Thanks for this great and easy to understand tutorial. Can you please guide us how to add Auth & ACL to this Laravel + Vue app or which Auth package would you recommend with Vue to build a custom CMS application? Thanks
@PovilasKorop4 жыл бұрын
There's no one way that is possible to recommend to everyone, it all depends on a lot of things. For technical implementation, see this video + Github: kzbin.info/www/bejne/bp7cgpeGgZ18Z9U As for which method to recommend, my colleague is writing an article about it, when it's released I will definitely publish a video, so stay subscribed to the channel.
@jeevachaithanyansivanandan3 жыл бұрын
very detailed explanation : thanks
@manojbist37933 жыл бұрын
Big Fan of yours. Thank you for the tips and knowledge you shared. Can you make another video with, Laravel+Vue jS multi-page project?
@LaravelDaily3 жыл бұрын
Search my channel for "vue", maybe you will find something: kzbin.info/door/TuplgOBi6tJIlesIboymGAsearch?query=vue - not sure what you mean exactly by "multi-page" project
@programmingwithsami19 ай бұрын
Very very helpful ❤
@nicolasgoosen51424 жыл бұрын
Thank you, Povilas! Around the 5-minute mark, why use resources as opposed to using the $visible or $hidden model attributes?
@PovilasKorop4 жыл бұрын
For more flexibility, because maybe you wouldn't want to have visible/hidden attributes for all cases for that model. I like resources because I know where to find those rules when I need them. It's like a separate layer for that specific purpose. Model properties are more like "magic" which other developers can miss if they take over your code after months/years.
@nicolasgoosen51424 жыл бұрын
@@PovilasKorop Ah, okay - that makes sense. And in addition to the above I guess at least you're assured that you won't accidentally break anything else in the rest of your app, because the resource is used explicitly.
@PovilasKorop4 жыл бұрын
@@nicolasgoosen5142 exactly
@haziriamin3 жыл бұрын
Thank you.. very easy to understand..
@freyarusso1543 жыл бұрын
Thank you so much for clear explanation!
@lordgodgiven4 жыл бұрын
Hello, Great video, many thanks. I've a question, it's about laravel livewire, according to you what do you think about that if you compare it with vuejs?
@PovilasKorop4 жыл бұрын
I haven't worked with Livewire on live projects, so can't give opinion on it.
@ericksanabria56572 жыл бұрын
Amazing job. Thank you
@krisssachintha3 жыл бұрын
you saved my day, thank you so much. Liked and shared
@chablay14 жыл бұрын
Very very nice tutorial.
@debasisacharya36043 жыл бұрын
Thank you sir. I was searching for this kind of video and finally i got it. it helped me alots.
@rafa.alcantara4 жыл бұрын
Lovely. Thanks man, straight to the point. BOOM.
@RadomPlayers3 жыл бұрын
What are the benefits of using Vue with laravel? I assume you can do the same things right? The only problem I see is that Vue uses axios and for laravel you need to use ajax.
@ShabbeyRoadMusic3 жыл бұрын
Same question here. I've only browsed the Vue docs but I don't really see the point. Since I'm running a business, I don't see the point of learning another product unless it provides a more efficient & readable way to do something that I already do, or it provides a way to do something I *can't* currently do. Vue doesn't seem to meet either of those requirements for me. But I'd welcome the thoughts of others on this.
@manishprabhakaran15613 жыл бұрын
Can I install vue 3 with an existing Jetstream/Livewire project. I tried doing it, but getting a few errors. Will doing it collide with any internal configuration.??. Please help me out.
@kelvezu15854 жыл бұрын
I'm starting not to use blade. I love how dynamic Vue is.
@saravanangilli0073 жыл бұрын
Excelent! Thanks for wonderful explaination.
@mansoul36064 жыл бұрын
Good explanation 👍
@lasseron4 жыл бұрын
Thank you for the tutorial! What is the minimum Laravel version for your example to work?
@PovilasKorop4 жыл бұрын
Not sure, I was doing it with latest Laravel 7. Shold work from Laravel 5.5, I think, cause that's when API resources were released.
@geraldbustos4 жыл бұрын
Gracias desde Chile!
@zhasan664 жыл бұрын
Really awesome tutorial. Thanks.
@tannercampbell4 жыл бұрын
Why do you install Vue.js in the devDependencies and not the dependencies? Doesn't that require an additional npm command when running the application in a production environment?
@PovilasKorop4 жыл бұрын
Good catch, my mistake there, since I was working on a local machine I didn't notice. It should be dependencies, yes.
@tannercampbell4 жыл бұрын
Povilas Korop no worries, thanks for the clarification. BTW love your videos you do a fantastic job teaching Laravel enthusiasts!!
@kristiansibarani30844 жыл бұрын
thank you, you deserve more subscriber
@h.serhan98623 жыл бұрын
You are the best!
@damwrz57394 жыл бұрын
Awesome tutorial!!! Great job, thank you.
@kelvezu15854 жыл бұрын
Hi Povilas. Can you do some videos about service container and service provider. How, when and why we should use it?
@PovilasKorop4 жыл бұрын
Personally, I haven't done any work with service container directly, and haven't created my own service provider except for when creating packages. I prefer practical knowledge with how to create things than digging deeper into how those service containers work under the hood. If you want, I recommend the course laravelcoreadventures.com/
@kelvezu15854 жыл бұрын
@@PovilasKorop Thanks. 😊
@pietrosavastano99403 жыл бұрын
why dont u use npm run watch
@sunnysk434 жыл бұрын
As always great explained. Just one question: If I load a big page with your shown method, the page is requested and behind the scenes the api... That's okay, but It always takes a litte until everything is rendered. Isn't it a good practice, when you visit a page ( in your example the shop ), that you load the categories and products with php and hand them over by vue props and the API request is only done, when I for example change the category or change the sort order or something like this?
@sunnysk434 жыл бұрын
@@davidbasil2727 Sounds good! Thanks for your evaluation!
@PovilasKorop4 жыл бұрын
It depends on what you want to achieve. I see such way of loading, as in the video, like Google Analytics or another dashboard with a lot of "blocks", so the page itself loads fast (to provide the info to the visitor that "hey it's working"), and then data is loading a bit later. If you load categories and products immediately, then - in this case you don't feel that because it's blazingly quick - visitor needs to wait for all DB queries to finish before any HTML is downloaded. So if you look at it from that point of view, this example in the video is not the best one - loading without Vue is actually quicker. But I just wanted to take a very simple example. And David - yes, rendering with Blade makes sense if loading of the data is pretty fast and visitor doesn't have to wait 2-3 seconds. But of course, it depends on the situation.
@sunnysk434 жыл бұрын
@@PovilasKorop Thanks for the clarification! Great Videos! Love your Channel!
@mahmoudjoumaa66924 жыл бұрын
Thank you Mr. for such a lesson. Here something caught my eye, we can do the stuff you did like transforming fields or removing fields from the resource using the models accessors and mutators and we can hide fields using the model hidden array, so which method is better? your openion matters a lot for me 🌹
@Paltibenlaish3 жыл бұрын
It will be nice to add a lazy loader for products so the user can actually see something fast
@techman43963 жыл бұрын
can you do same tutorial for Vue 3?
@JohnSmith-zl8rz4 жыл бұрын
I would love a tut like this about Laravel API + Nuxt
@vanessakilo78224 жыл бұрын
This is great! But I got a question: is it absolutely necessary to run npm to compile every component? Is there a way to avoid npm at all???
@chetanrajput70183 жыл бұрын
run 'npm run watch' after that you don't need to run 'npm run dev' every time
@arturodelosangeles3 жыл бұрын
excellent tutorial, thank you
@carlosquintero19682 жыл бұрын
Just to be clear to all ppl starting, us dont need to run npm install && npm run dev each time you have changes, npm install muyst be run only for install the project or if u add new packages to the package.json manually