No video

From Laravel Blade to Vue.js + API [Live-coding Example]

  Рет қаралды 168,531

Laravel Daily

Laravel Daily

Күн бұрын

For those who haven't started with Vue.js - you can watch me adapting that quickly, in 22 minutes, in (almost) live-mode.
We take a typical Laravel page of catalog with categories and products, and we transform that into Laravel API, then consuming it from Vue.js.
Repository: github.com/Lar...
Wanna dive a bit deeper into Laravel + Vue? I have a full 2-hour course with a practical project "Vue.js 3 + Laravel 9: CRUD with SPA": laraveldaily.t...
- - - - -
Support the channel by checking out my products:
- My Laravel courses membership: laraveldaily.t...
- Laravel QuickAdminPanel: bit.ly/quickad...
- Livewire Kit Components: livewirekit.com
- - - - -
Other places to follow:
- My weekly Laravel newsletter: bit.ly/laravel-...
- My personal Twitter: / povilaskorop

Пікірлер: 268
@bru6626
@bru6626 4 жыл бұрын
This type of tutorial is what i want. Straight to the point
@sebot1
@sebot1 3 жыл бұрын
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!
@manishprabhakaran1561
@manishprabhakaran1561 3 жыл бұрын
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.
@hamdaniash-siddiq5021
@hamdaniash-siddiq5021 4 жыл бұрын
You are really the best teacher of laravel. U make things clear by doing simple things.
@peo6264
@peo6264 4 жыл бұрын
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
@Sdirimohamedsalah
@Sdirimohamedsalah 10 ай бұрын
Great! 99% of tutors don’t cover building project
@gojamoja6719
@gojamoja6719 2 жыл бұрын
You are a blessing for laravel learners
@tallaljamshed4880
@tallaljamshed4880 4 жыл бұрын
I find your explanation quite easy to understand. It will be much appreciated if you could make a tutorial series on vue.js.
@PovilasKorop
@PovilasKorop 4 жыл бұрын
Thanks, will think about it.
@the_coding_traveller
@the_coding_traveller 4 ай бұрын
actually made a tutorial that made me motivated to learn it. just simple and clear! Thank you for the good work!!
@mwacharojohn9318
@mwacharojohn9318 Жыл бұрын
thank you saved me .several concepts in one video
@mauriciosorto8163
@mauriciosorto8163 4 жыл бұрын
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!
@adriennecool69
@adriennecool69 2 жыл бұрын
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!
@Imagine51204
@Imagine51204 4 жыл бұрын
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
@BradleyAhrens
@BradleyAhrens 4 жыл бұрын
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. 😉
@MohamedZiada
@MohamedZiada 4 жыл бұрын
@Povilas Korop , Thanks for the video, Or u can `npm run dev` without each time run `npm install`
@windigo000
@windigo000 3 жыл бұрын
15:18 - consistency 😁 1) data: function() { ... 2) mounted() { ... I am paying attention sometimes :P
@mydublue
@mydublue 3 жыл бұрын
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
@emersonslvm
@emersonslvm 4 жыл бұрын
Pretty nice video! Congrats, from Brazil 🇧🇷
@VadimBesedin
@VadimBesedin 4 жыл бұрын
Clear and straight to the point. Thank you for your time and for sharing your knowledge!
@onessimuslyngdoh289
@onessimuslyngdoh289 4 жыл бұрын
Npm run watch and you don't need to run npm install everytime
@Formula7Driver
@Formula7Driver 3 жыл бұрын
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
@bogdanmarian3786
@bogdanmarian3786 4 жыл бұрын
Thank you for having the patience to explain every step, this is a great tutorial !
@remorechtzen5163
@remorechtzen5163 3 жыл бұрын
Watching your videos is the best way to learn. Thank you very much!
@masterpreshy9614
@masterpreshy9614 2 жыл бұрын
Best Teacher!
@gurbeigekolekter8831
@gurbeigekolekter8831 3 жыл бұрын
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.
@hasanchishti6428
@hasanchishti6428 2 жыл бұрын
You are a real Hero. Thank you for this amazing video
@francisco25657
@francisco25657 2 жыл бұрын
This video is gold
@Jes14-t3b
@Jes14-t3b 3 жыл бұрын
I'm motivated now to learn SPA with Laravel and Vue, thanksss.
@shabastech
@shabastech 10 ай бұрын
the best 💯 so far
@aronpop1447
@aronpop1447 3 жыл бұрын
Straight to the point man. No bs. Subscribed.
@lakmalp
@lakmalp 4 жыл бұрын
It was super simple to understand yet informative and to the point
@KastsEcho
@KastsEcho 2 жыл бұрын
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.
@hesami13
@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
@caio.osalchesttes8791
@caio.osalchesttes8791 2 жыл бұрын
O tutorial que eu precisava! O brasil te manda um beijoo
@ciaranslemon83
@ciaranslemon83 4 жыл бұрын
Really really well presented tutorial. Great pace, easy to follow and clear!
@hinafraz528
@hinafraz528 3 жыл бұрын
only understood your lecture, thanks, man. you saved me a lot of time.
@jaker9007
@jaker9007 Жыл бұрын
Huge thanks mate! Saved me a lot of time!
@edmartinez5345
@edmartinez5345 4 жыл бұрын
Thank you so much. Please keep generating great content! Cheers to you.
@aungminhein2178
@aungminhein2178 Жыл бұрын
Easiest to understand ever
@topmemesforyou5848
@topmemesforyou5848 3 жыл бұрын
Thanks for this video, please do more on Vue.js + Laravel
@Michel39511
@Michel39511 4 жыл бұрын
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.
@mateuspokemon01
@mateuspokemon01 4 жыл бұрын
Great! That's exactly what I needed! Thanks for sharing!
@eleadnetworks3876
@eleadnetworks3876 3 жыл бұрын
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
@KangJangkrik
@KangJangkrik 4 жыл бұрын
I'm using both, for product listing blade is better and dynamic widgets (like graph and chart) only possible with vue. Perfect combo 👌
@woutervisser5987
@woutervisser5987 3 жыл бұрын
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
@Saikiasian
@Saikiasian 2 жыл бұрын
thank you for another great tutorial. Really helps us beginners out.
@PL4YR
@PL4YR 2 жыл бұрын
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
@MrDLashley
@MrDLashley 4 жыл бұрын
Hi Povilas , Great tutorial, and I was wondering if you were going to follow it up with an insert / update example
@PovilasKorop
@PovilasKorop 4 жыл бұрын
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.
@haziriamin
@haziriamin 3 жыл бұрын
Thank you.. very easy to understand..
@user-og2gz7lh5t
@user-og2gz7lh5t 2 жыл бұрын
Я Английский сюда захожу подучить =) Идеально произношение! Спасибо!
@taiwoolatmi3594
@taiwoolatmi3594 4 жыл бұрын
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.
@dennisreetz8492
@dennisreetz8492 3 жыл бұрын
Great tutorial! Thank you. Straight to the point.👍
@nabeelyousafpasha
@nabeelyousafpasha 4 жыл бұрын
Looking forward to your more videos relevant to VUE. Respect from Pakistan 🇵🇰
@ajithlal1688
@ajithlal1688 4 жыл бұрын
I was waiting for this video. You are awesome
@Undercraftt
@Undercraftt 3 жыл бұрын
Thanks a lot for this example... very clear.
@davidsyengo1893
@davidsyengo1893 2 жыл бұрын
instant sub, great work, vivid explanation.
@bhubanmalek4589
@bhubanmalek4589 4 жыл бұрын
thanx man.. one of siplest tutorial... just at point...
@programmingwithsami1
@programmingwithsami1 7 ай бұрын
Very very helpful ❤
@ericksanabria5657
@ericksanabria5657 2 жыл бұрын
Amazing job. Thank you
@sagytt
@sagytt 3 жыл бұрын
Greate Video! You know how to pass knowledge very efficiently.
@rafa.alcantara
@rafa.alcantara 4 жыл бұрын
Lovely. Thanks man, straight to the point. BOOM.
@freyarusso154
@freyarusso154 3 жыл бұрын
Thank you so much for clear explanation!
@debasisacharya3604
@debasisacharya3604 3 жыл бұрын
Thank you sir. I was searching for this kind of video and finally i got it. it helped me alots.
@krisssachintha
@krisssachintha 3 жыл бұрын
you saved my day, thank you so much. Liked and shared
@niketjoshi5877
@niketjoshi5877 4 жыл бұрын
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.
@PovilasKorop
@PovilasKorop 4 жыл бұрын
Thanks, will think about it.
@daviddeleon3411
@daviddeleon3411 4 жыл бұрын
@@PovilasKorop I love how php master teach us js thank you sir
@javascoutfootball
@javascoutfootball 4 жыл бұрын
That's loading state to false should be in finally scope, bcz when request failed that loading still show forever
@aqshalzakki2526
@aqshalzakki2526 4 жыл бұрын
yeah in finally block, but that should be just fine for starting point
@damwrz5739
@damwrz5739 3 жыл бұрын
Awesome tutorial!!! Great job, thank you.
@h.serhan9862
@h.serhan9862 3 жыл бұрын
You are the best!
@carlosquintero1968
@carlosquintero1968 2 жыл бұрын
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
@RadomPlayers
@RadomPlayers 3 жыл бұрын
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.
@ShabbeyRoadMusic
@ShabbeyRoadMusic 3 жыл бұрын
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.
@jeevachaithanyansivanandan
@jeevachaithanyansivanandan 3 жыл бұрын
very detailed explanation : thanks
@Daily-digital
@Daily-digital 3 жыл бұрын
grateful to You. Can we have a series of laravel 8 + react/vs with any live project tutorial...
@zhasan66
@zhasan66 4 жыл бұрын
Really awesome tutorial. Thanks.
@saravanangilli007
@saravanangilli007 3 жыл бұрын
Excelent! Thanks for wonderful explaination.
@YassineHAOUARI
@YassineHAOUARI 4 жыл бұрын
That's really what I'm working for.. thank you!
@kristiansibarani3084
@kristiansibarani3084 4 жыл бұрын
thank you, you deserve more subscriber
@JohnSmith-zl8rz
@JohnSmith-zl8rz 3 жыл бұрын
I prefer this way than Inertia or Livewire, thanks!
@djnkuli
@djnkuli 3 жыл бұрын
I dont know what to say but Thank you! 😊 🙏
@manishprabhakaran1561
@manishprabhakaran1561 3 жыл бұрын
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.
@kelvezu1585
@kelvezu1585 4 жыл бұрын
I'm starting not to use blade. I love how dynamic Vue is.
@403gtfo
@403gtfo 4 жыл бұрын
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 :)
@LaravelDaily
@LaravelDaily 4 жыл бұрын
Yes, good catch.
@marilenaarsulescu
@marilenaarsulescu Жыл бұрын
great tutorial
@Paltibenlaish
@Paltibenlaish 3 жыл бұрын
It will be nice to add a lazy loader for products so the user can actually see something fast
@technocoh
@technocoh 3 жыл бұрын
Amazing tutorial, ty very much! :D
@chablay1
@chablay1 4 жыл бұрын
Very very nice tutorial.
@arturodelosangeles
@arturodelosangeles 3 жыл бұрын
excellent tutorial, thank you
@pietrosavastano9940
@pietrosavastano9940 3 жыл бұрын
why dont u use npm run watch
@cyrillembia
@cyrillembia 2 жыл бұрын
Verry usefull. Thanks
@curiousbd8115
@curiousbd8115 3 жыл бұрын
You are awesome
@tannercampbell
@tannercampbell 4 жыл бұрын
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?
@PovilasKorop
@PovilasKorop 4 жыл бұрын
Good catch, my mistake there, since I was working on a local machine I didn't notice. It should be dependencies, yes.
@tannercampbell
@tannercampbell 4 жыл бұрын
Povilas Korop no worries, thanks for the clarification. BTW love your videos you do a fantastic job teaching Laravel enthusiasts!!
@JohnSmith-zl8rz
@JohnSmith-zl8rz 3 жыл бұрын
I would love a tut like this about Laravel API + Nuxt
@geraldbustos
@geraldbustos 4 жыл бұрын
Gracias desde Chile!
@merahsamia9785
@merahsamia9785 11 ай бұрын
Awesome!
@copinman
@copinman 4 жыл бұрын
Hi, im kinda new with blade and laravel but im been doing some complex stuff too yet does anyone can explain to me why use vue.js instead of the simple blade syntax that doesnt need to compile. Thanks 😃
@ShabbeyRoadMusic
@ShabbeyRoadMusic 3 жыл бұрын
Good question. I always wonder about these tools that keep coming out that don't seem to do anything new. They just seem to do what something else already does in a different way.
@mansoul3606
@mansoul3606 4 жыл бұрын
Good explanation 👍
@technozoon4087
@technozoon4087 3 жыл бұрын
Thank you
@ridwanhaqi6834
@ridwanhaqi6834 2 жыл бұрын
Thank you verymuch
@sergeyk7285
@sergeyk7285 3 жыл бұрын
The example works on a localhost, an error appears on the server src="{{ mix('js/app.js') }}" Failed to load resource: the server responded with a status of 404 (Not Found) How to fix it?
@flashbangstudio9102
@flashbangstudio9102 4 жыл бұрын
Oh nice topic ! Thank you
@andrewbookamba7674
@andrewbookamba7674 2 жыл бұрын
Thanks
@shohanhossain8280
@shohanhossain8280 4 жыл бұрын
Yes. This is a good start
@iordanistsapanidis4021
@iordanistsapanidis4021 3 жыл бұрын
How to work with vuejs inside providers directory in order to use view composers?
Laravel Security: Top 7 Mistakes Developers Make
11:16
Laravel Daily
Рет қаралды 83 М.
Laravel Form: From Blade to Vue.js + API
17:12
Laravel Daily
Рет қаралды 56 М.
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 45 МЛН
КАКУЮ ДВЕРЬ ВЫБРАТЬ? 😂 #Shorts
00:45
НУБАСТЕР
Рет қаралды 3,3 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 45 МЛН
Risking my life to save $5000
19:29
Linus Tech Tips
Рет қаралды 1,1 МЛН
Livewire or Vue.js: Which to Use When?
12:13
Laravel Daily
Рет қаралды 14 М.
Should You Switch from Laravel-only to Vue+SPA?
11:45
Laravel Daily
Рет қаралды 41 М.
Laravel SPA Authentication - setup and common mistakes
16:55
Junior Code Review: Laravel Routes, Middleware, Validation and more
19:57
Livewire VS Vue.js: Practical Example of Dependent Dropdowns
13:40
Laravel Daily
Рет қаралды 42 М.
Laravel: Create Public API with Cache and Rate Limits
12:18
Laravel Daily
Рет қаралды 45 М.
Write Laravel, not PHP (feat. Aaron Francis) | 029
58:45
Backend Banter
Рет қаралды 15 М.
JavaScript DOM Manipulation - Full Course for Beginners
2:41:21
freeCodeCamp.org
Рет қаралды 1 МЛН
Todo List App with Laravel and Vue.js
1:00:16
Scrypster
Рет қаралды 236 М.
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН