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

Поділитися
Вставка
  • Опубліковано 20 сер 2024
  • 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 роки тому +75

    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!

  • @hamdaniash-siddiq5021
    @hamdaniash-siddiq5021 4 роки тому +1

    You are really the best teacher of laravel. U make things clear by doing simple things.

  • @manishprabhakaran1561
    @manishprabhakaran1561 3 роки тому +2

    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.

  • @gojamoja6719
    @gojamoja6719 2 роки тому +1

    You are a blessing for laravel learners

  • @peo6264
    @peo6264 4 роки тому +14

    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

  • @BradleyAhrens
    @BradleyAhrens 4 роки тому +11

    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`

  • @tallaljamshed4880
    @tallaljamshed4880 4 роки тому +6

    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 роки тому +6

      Thanks, will think about it.

  • @adriennecool69
    @adriennecool69 2 роки тому +1

    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!

  • @mauriciosorto8163
    @mauriciosorto8163 4 роки тому +6

    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!

  • @Sdirimohamedsalah
    @Sdirimohamedsalah 10 місяців тому

    Great! 99% of tutors don’t cover building project

  • @mwacharojohn9318
    @mwacharojohn9318 Рік тому

    thank you saved me .several concepts in one video

  • @VadimBesedin
    @VadimBesedin 4 роки тому +2

    Clear and straight to the point. Thank you for your time and for sharing your knowledge!

  • @windigo000
    @windigo000 3 роки тому +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

  • @LaravelDaily
    @LaravelDaily  4 роки тому +20

    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-lo9nv
      @muhammadharis-lo9nv 2 роки тому

      Hi sir can you make tutorial review product laravel vue js pusher

  • @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!!

  • @bogdanmarian3786
    @bogdanmarian3786 4 роки тому +3

    Thank you for having the patience to explain every step, this is a great tutorial !

  • @emersonslvm
    @emersonslvm 4 роки тому +4

    Pretty nice video! Congrats, from Brazil 🇧🇷

  • @remorechtzen5163
    @remorechtzen5163 3 роки тому

    Watching your videos is the best way to learn. Thank you very much!

  • @Imagine51204
    @Imagine51204 4 роки тому +5

    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

  • @gurbeigekolekter8831
    @gurbeigekolekter8831 3 роки тому +5

    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

  • @Jes14-t3b
    @Jes14-t3b 3 роки тому

    I'm motivated now to learn SPA with Laravel and Vue, thanksss.

  • @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

  • @masterpreshy9614
    @masterpreshy9614 2 роки тому +1

    Best Teacher!

  • @francisco25657
    @francisco25657 2 роки тому +1

    This video is gold

  • @onessimuslyngdoh289
    @onessimuslyngdoh289 4 роки тому +85

    Npm run watch and you don't need to run npm install everytime

    • @Formula7Driver
      @Formula7Driver 3 роки тому +7

      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

  • @hesami13
    @hesami13 Рік тому +1

    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

  • @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.

  • @caio.osalchesttes8791
    @caio.osalchesttes8791 2 роки тому

    O tutorial que eu precisava! O brasil te manda um beijoo

  • @shabastech
    @shabastech 10 місяців тому +1

    the best 💯 so far

  • @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 👌

  • @edmartinez5345
    @edmartinez5345 4 роки тому +1

    Thank you so much. Please keep generating great content! Cheers to you.

  • @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!

  • @ciaranslemon83
    @ciaranslemon83 4 роки тому +1

    Really really well presented tutorial. Great pace, easy to follow and clear!

  • @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

  • @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

  • @topmemesforyou5848
    @topmemesforyou5848 3 роки тому

    Thanks for this video, please do more on Vue.js + Laravel

  • @nabeelyousafpasha
    @nabeelyousafpasha 4 роки тому

    Looking forward to your more videos relevant to VUE. Respect from Pakistan 🇵🇰

  • @taiwoolatmi3594
    @taiwoolatmi3594 4 роки тому +1

    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.

  • @mateuspokemon01
    @mateuspokemon01 4 роки тому +1

    Great! That's exactly what I needed! Thanks for sharing!

  • @Michel39511
    @Michel39511 4 роки тому +24

    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.

  • @haziriamin
    @haziriamin 3 роки тому

    Thank you.. very easy to understand..

  • @Saikiasian
    @Saikiasian 2 роки тому

    thank you for another great tutorial. Really helps us beginners out.

  • @ajithlal1688
    @ajithlal1688 4 роки тому

    I was waiting for this video. You are awesome

  • @aungminhein2178
    @aungminhein2178 Рік тому

    Easiest to understand ever

  • @dennisreetz8492
    @dennisreetz8492 3 роки тому

    Great tutorial! Thank you. Straight to the point.👍

  • @Undercraftt
    @Undercraftt 3 роки тому

    Thanks a lot for this example... very clear.

  • @krisssachintha
    @krisssachintha 3 роки тому

    you saved my day, thank you so much. Liked and shared

  • @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

  • @bhubanmalek4589
    @bhubanmalek4589 4 роки тому

    thanx man.. one of siplest tutorial... just at point...

  • @davidsyengo1893
    @davidsyengo1893 2 роки тому

    instant sub, great work, vivid explanation.

  • @programmingwithsami1
    @programmingwithsami1 7 місяців тому

    Very very helpful ❤

  • @rafa.alcantara
    @rafa.alcantara 4 роки тому

    Lovely. Thanks man, straight to the point. BOOM.

  • @niketjoshi5877
    @niketjoshi5877 4 роки тому +1

    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 роки тому +1

      Thanks, will think about it.

    • @daviddeleon3411
      @daviddeleon3411 4 роки тому

      @@PovilasKorop I love how php master teach us js thank you sir

  • @ericksanabria5657
    @ericksanabria5657 2 роки тому

    Amazing job. Thank you

  • @sagytt
    @sagytt 3 роки тому

    Greate Video! You know how to pass knowledge very efficiently.

  • @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.

  • @jeevachaithanyansivanandan
    @jeevachaithanyansivanandan 3 роки тому

    very detailed explanation : thanks

  • @user-og2gz7lh5t
    @user-og2gz7lh5t 2 роки тому

    Я Английский сюда захожу подучить =) Идеально произношение! Спасибо!

  • @MrDLashley
    @MrDLashley 4 роки тому +2

    Hi Povilas , Great tutorial, and I was wondering if you were going to follow it up with an insert / update example

    • @PovilasKorop
      @PovilasKorop 4 роки тому +1

      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.

  • @damwrz5739
    @damwrz5739 3 роки тому

    Awesome tutorial!!! Great job, thank you.

  • @saravanangilli007
    @saravanangilli007 3 роки тому

    Excelent! Thanks for wonderful explaination.

  • @YassineHAOUARI
    @YassineHAOUARI 4 роки тому

    That's really what I'm working for.. thank you!

  • @zhasan66
    @zhasan66 4 роки тому

    Really awesome tutorial. Thanks.

  • @kristiansibarani3084
    @kristiansibarani3084 4 роки тому

    thank you, you deserve more subscriber

  • @geraldbustos
    @geraldbustos 4 роки тому

    Gracias desde Chile!

  • @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

  • @chablay1
    @chablay1 4 роки тому

    Very very nice tutorial.

  • @marilenaarsulescu
    @marilenaarsulescu Рік тому

    great tutorial

  • @djnkuli
    @djnkuli 3 роки тому +1

    I dont know what to say but Thank you! 😊 🙏

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz 3 роки тому

    I prefer this way than Inertia or Livewire, thanks!

  • @arturodelosangeles
    @arturodelosangeles 3 роки тому

    excellent tutorial, thank you

  • @cyrillembia
    @cyrillembia 2 роки тому

    Verry usefull. Thanks

  • @technocoh
    @technocoh 3 роки тому

    Amazing tutorial, ty very much! :D

  • @Daily-digital
    @Daily-digital 3 роки тому +1

    grateful to You. Can we have a series of laravel 8 + react/vs with any live project tutorial...

  • @mansoul3606
    @mansoul3606 4 роки тому

    Good explanation 👍

  • @shohanhossain8280
    @shohanhossain8280 4 роки тому

    Yes. This is a good start

  • @AJosevb
    @AJosevb 4 роки тому

    Muy buena explicacion Gracias.!

  • @flashbangstudio9102
    @flashbangstudio9102 4 роки тому

    Oh nice topic ! Thank you

  • @Paltibenlaish
    @Paltibenlaish 3 роки тому

    It will be nice to add a lazy loader for products so the user can actually see something fast

  • @heshammahmoud7277
    @heshammahmoud7277 4 роки тому

    Thanks a Lot that was very helpful

  • @javascoutfootball
    @javascoutfootball 4 роки тому +3

    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

  • @403gtfo
    @403gtfo 4 роки тому +3

    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 :)

  • @kelvezu1585
    @kelvezu1585 4 роки тому +3

    I'm starting not to use blade. I love how dynamic Vue is.

  • @manishprabhakaran1561
    @manishprabhakaran1561 3 роки тому +1

    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.

  • @schoolfaqs
    @schoolfaqs 4 роки тому

    Thank you for this video

  • @ridwanhaqi6834
    @ridwanhaqi6834 2 роки тому

    Thank you verymuch

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz 3 роки тому

    I would love a tut like this about Laravel API + Nuxt

  • @manojbist3793
    @manojbist3793 3 роки тому

    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?

    • @LaravelDaily
      @LaravelDaily  3 роки тому

      Search my channel for "vue", maybe you will find something: ua-cam.com/channels/TuplgOBi6tJIlesIboymGA.htmlsearch?query=vue - not sure what you mean exactly by "multi-page" project

  • @pietrosavastano9940
    @pietrosavastano9940 3 роки тому +1

    why dont u use npm run watch

  • @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?

  • @curiousbd8115
    @curiousbd8115 3 роки тому

    You are awesome

  • @RadomPlayers
    @RadomPlayers 3 роки тому +1

    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 роки тому +1

      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.

  • @dannyforr
    @dannyforr 3 роки тому

    Sensacional! Muito bom!