Build a shopping cart with Laravel Cashier and Vue

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 114

  • @aschmelyun
    @aschmelyun  3 роки тому +40

    Check out the full source code in this video here: github.com/aschmelyun/laravel-vue-stripe-cashier

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

      Thank you for your support.

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

      Premium content. The first section (setting up the vue/vuex in Laravel as SPA) can turn into a good starter command/preset especially now that people have to decide between new Livewire/Inertia or the good old blade/vue.

  • @uniqueprogramming5299
    @uniqueprogramming5299 3 роки тому +9

    I was always afraid of payment but you make it look like extremely easy. Thanks man for this amazing content. Please next upload subscription with cashier.

  • @davidrowlands8548
    @davidrowlands8548 2 роки тому +8

    For people who got an error around the 11 minute mark because of Str::slug($name). The video did not show that the module was being imported because it is done automatically in his editor.
    You need to import the Str module at the top of the file:
    use Illuminate\Support\Str;
    so that your code looks like this:
    use App\Models\Category;
    use Illuminate\Database\Eloquent\Factories\Factory;
    use Illuminate\Support\Str;

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

      In fact, in quite a few places he is using modules that are automatically being imported at the top of a file. So if you're not using php storm you will get errors.
      So beware.

  • @fizoul356
    @fizoul356 3 роки тому +6

    Sir, you are a treasure, thank you very much for these videos, I have never watched a tutorial that is that organized, fast, and simple as this one, I have learned a lot in a short time, plus you write nice clean code with good practices, and we can see how much experience you have through that, much love and admiration

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

      Thank you so much! That means a lot to me, and keeps me motivated to continue producing videos.

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

      @@aschmelyun you are the most welcome, i hope i could help with more than words, respect

    • @Stevensherah
      @Stevensherah 2 дні тому

      I learn this In 1 calendar Year Computer Science with PHP MVC now with this other technologies in Just 1 hour Thanks man😮😢

  • @apptimegr
    @apptimegr 3 роки тому +3

    Premium content. Just to the point. Nicely made! 👏

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

    I know that for learning it is better to type everything by myself, but on this video you could really use the autocompletion of PHPStorm, so that new people on your channel is not bothered to see you typing everything. That would also show the power of the autocompletion in PHPStorm.
    With autocompletion I mean:
    - HTML scaffold
    - Autocomplete classes
    - Import class namespaces
    and so on.

  • @pradeepspace3
    @pradeepspace3 3 роки тому +3

    Wow Andrew, This is a fantastic content. Thanks for sharing this video 🙂

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

    This is some A+++ Content here! Thanks :) I love the speed of this video too!

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

    This tutorial is excellent, it helped me a lot.
    I believe that I can use this tutorial to understand, implement other means of payment.
    I have a request, if possible more tutorials on vuejs, I believe they will be excellent as well as all the other tutorials on your channel.
    Thanks!

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

    Amazing video, so concise and to the point. Love It....more videos like these please !!!.

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

    This dude is the fastest typer i have ever seen

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

    AWesome,
    Please make again this video in Laravel and blade

  • @LinhPham-iu2fr
    @LinhPham-iu2fr 3 роки тому +1

    Thank your for the video. Can I ask a question. How can I setup the terminal inside phpstorn that has command completion like you?

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

    Wow brother thank you for this video truly help me out you my friend are a genius. And to think I was almost doing it right, humbly saying I'm pretty proud of myself actually . I was just missing a couple key components that use shine light on , it all makes sense now. thank you

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

    Excellent video, what IDE did you use to develop that app? And what plugin do you use for the html tag breadcrumb.

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

      Based upon the folder icons and error labels and foldable code symbols, I think he is using some kind of Intellij product with the extension material UI or material UI light and material icons installed, so he can use one of the rlly cool dark themes. So I guess it's phpstorm.
      I use intellij Idea and I love the IDE, sadly my bos does not want to pay for phpstorm (yet)

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

    Thanks for this awesome video!!!
    Now I'll figure out how to install IUGU (Brazilian Payment Gateway) on a Laravel / NuxtJS project ;)

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

    It's okay, I don't like the SPA UI structure much. Expected header and footer as a component. Great work overall

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

    A very nice tutorial.
    I checked for the code in your github but you just did initial commit.
    kindly update it for cross-checking

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

    Good work sir 🙂

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

    Damn what's with the random spam comments? Anyways perfect timing with this was I had planned to do this this weekend!

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

      Yeah, they always seem to pop up with every new video. Glad I got this published just in time, then!

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

    Error in cents.
    Hello, I am seeing the amount I am charging isn't the same on stripe.
    I charged for 420 EUR and on the stripe, it shows 4Eur.
    please help me with this

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

    Great, many thanks... premium course

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

    what if the base route has a segment? How do I provide vue routes in the routes js file ?

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

    Keep Going Please Make More Videos

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

    I developed my app with help of this great tutorial but wondering now, why body request with sensitive data like credit card details are visible in browser devtools? It's not safe. Is there a way to handle that safety issue?

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

    Andrew, would you like to share this awesome code on git? It will be easy to follow and some parts double-check.

    • @aschmelyun
      @aschmelyun  3 роки тому +3

      Of course, I knew I forgot to do something! Check out the pinned comment for the git repo.

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

      @@aschmelyun Thank you for reading the comments and for this repo! Wish you all the best in new 2021 year ;)

    • @aschmelyun
      @aschmelyun  3 роки тому +3

      @@stojankukrika7242 I always read the comments! It keeps me inspired. You too!

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

    Saving millions of salaries this year with this video lol

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

    Thank you so much for this video. I am using it but i have problem in adding user auth (register, login, confirm email).
    Could guide me to add auth pls

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

    Hi is it okay to calculate total amount in frontend ? I think you are requesting amount from frontend, right?

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

    This video saved my day. Thank you Andrew!

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

    thanks for the video. everything worked in dev, however when i deployed my demo with strip still in test mode. when i do npm run dev and then deploy the strip still works but as soon as i do npm run prod and deploy i get 'IntegrationError: Missing value for Stripe(): apiKey should be a string." Any suggestion as to why would be appreciated. Even when i hard code the key in it still doenst recognise it despite being a string..

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

    super awesome, thanks for the good better best content, huge like from Pakistan

  • @mel-182
    @mel-182 2 роки тому

    Is there a way to autofill the card details on the card element? I am storing the card details in my database.

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

    Useful Content Thanks.

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

    Thank you Andrew for great video.

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

    I have done exactly everything from the video but the summary page won't load. I checked stripe, it is getting successful requests under 'Developer' tab but nothing in payments. I have done exactly the same from the video, I copied the code when the transaction wasn't taking place and still no use. Its been 2 days and I cannot figure it out. I checked console log and it shows some error regarding 'reduce'.

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

      hey mate. i am having the same problem. Was you able to fix it?

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

      @@NyloXD No man, I wasn't able to fix it.. let me know if you found out the solution

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

      @@faizanakbar7175 sure mate, if i find the solution i will keep you posted.

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

      The problem is from the Checkout.vue to the Summary.vue. The Summary is not receiving the 'order' object. I dont know how to fix though

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

      @@NyloXD Yes initially I tried to look into it, but I still couldn't find the solution. That's when I commented here, I checked the codes too and it's same..

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

    Hi , good , but i have a question about credit card , after paying some amount of 💸 money , it give me Purchase ID , costomer should screenshot this or not becouse they share us when they visit at shop -> this is a first question.
    Second one is after paying method finished , credit card may lost some amount of money that puted into input field .
    Please answer those . I will wait .
    Bye 🤝☺️

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

    Yo bro spot on 👍 . Perfectly done

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

    When I do
    products.find(product => product.slug === route.params.slug);
    Sometimes the data is loaded, and sometimes not. Does anyone know the reason? I suppose it'd be something related to the lifecycle as the Products/Show page is loaded before the find() function is done. It may be because I have over 700 products in the database. Any possibility that I can ask the page to wait until the find() function is done?

  • @jpandagaming5995
    @jpandagaming5995 6 місяців тому

    "A `return_url` must be specified because this Payment Intent is configured to automatically accept the payment methods enabled in the Dashboard, some of which may require a full page redirect to succeed. If you do not want to accept redirect-based payment methods, set `automatic_payment_methods[enabled]` to `true` and `automatic_payment_methods[allow_redirects]` to `never` when creating Setup Intents and Payment Intents." Please help...

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

    Working perfectly, thank you so much for this video!

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

    Nice tutorial. But how to implement SCA and 3D secure?

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

    The price should also be denormalized since we can later sell a product for a different price

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

    Hello Sir, I am new to Laravel and I am a student having exam in Laravel, So we have to make a project. I already have one but I wanna add this to my project. how will I put it in my route and navigation? since this is already one project. I know this is a very stupid question but hopefully you can answer me. Thanks a lot!

  • @JJ-ot3ps
    @JJ-ot3ps 2 роки тому

    this is very good tutorials! I am wondering does vue work with django as I never work with laraval befroe though? do you also have any more how vue frontend turotrial like design navbar etc?

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

      Yes, Vue is known as "backend agnostic" meaning that it doesn't matter what backend framework you use, it should work! Django, Flask, Express, WordPress, all can work.
      I have a few older frontend tutorials for Vue, but not a lot. Planning on adding more soon though!

    • @JJ-ot3ps
      @JJ-ot3ps 2 роки тому

      @@aschmelyun that would be great! would love to see how vue vite work with django too, I see axios is the only way to connect them, not sure if that is best way though.

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

    thanks andrew. your content very best

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

    Anybody knows what plug-in Andrew uses to show the parameters’ type automatically in the code?

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

      It's not a plugin its automatic in Php Storm which is the IDE he is using

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

    You are amazing, Thanks you for this worthy tutorial keep going!

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

    I tried following this, but the credit card form does not appear. I don't know whats wrong

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

    Hello Sir, I want to put a product manually, not through API, how will I do that? this is really a good tutorial!

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

    How to add an image to this? coz its all blank image.. thank you

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

    Great tutorial, you saved my time. 👏 👏 👏

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

    Thank you so Much Andrew

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

    Continue this video and add subscriptions plan🤘

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

    Wonderful tutorial!

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

    Awesome video ! Totally what I need Thanksss

  • @8693alenieto
    @8693alenieto 3 роки тому

    Which extension makes the arrows like that?

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

    how do you keep the cart items on page refresh?

  • @Paul-oz5se
    @Paul-oz5se 3 роки тому

    Hello Andrew, very nice tutorial. Can you add video tutorial on how to upload image file using laravel and vue?Thank you

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

      Sure thing! I'll be sure to add it to my list.

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

    Thanks!

  • @ЕвгенийЕвгений-з2с

    Hi, what font do you use in ide?

  • @kristiyan.zhelyazkov
    @kristiyan.zhelyazkov Рік тому

    Why don’t you adding foreign keys anywhere?

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

    shouldn't you recalculate the total price on the backend instead of blindly accepting it from the front end ? can't you just set it to 0$ in the front end ?

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

    this is gold

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

    I get error from in my index.vue :

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

      i think you need to add :key for this. as for me I added :key="category.id"

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

      That is correct, for Vue it will probably throw an error unless you include the key attribute above.

  • @uchchhash-dev
    @uchchhash-dev 3 роки тому

    Thank you very much for the content

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

    Maybe nextjs with laravel cashier subscriptions

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

    great tutorial

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

    Very Good! Congratulation!

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

    Thank you!

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

    Please the same with react

  • @AllinOne-qc5it
    @AllinOne-qc5it 3 роки тому

    Great video, thanks

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

    at 6:36 he said each product belongs to many catagories which i think is wrong because each product can only belong to a single catagory

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

      It depends on your project structure, you might want something like tags, so he is right, a single product can belong to many categories

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

    what is your IDE?

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

      looks like PHP storm from jetbrains

  • @perfect.stealth
    @perfect.stealth 3 роки тому

    Thanks for this useful tutorial. However some things you do is very bad practice.
    No product SKU (slugs can change)
    The customer data should be stored as a profile and not in the users table.
    Using relationships from product to order isn't smart either, in case a product is deleted the order will be wrong.

  • @hamidreza-mozhdeh
    @hamidreza-mozhdeh 2 роки тому

    Awsome

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

    Good

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

    brayta nimo kol oi

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

    awesome