I’m quite scared that by the time I figure out how to use everything they built, they will release something else that completely shifts the focus again. I loved the Blade/Vue dynamic. It made sense to me and it was so easy to build something simple and work your way up with components. Now I have to do so much mental gymnastics to figure out how to structure something in my head into this design monolith. I really hope I can figure it out.
They have prebuilt passport components in their front end scaffolding. I was playing around with it yesterday... ugh. It’s so opinionated it hurts. They rewrote so much of their code into fractional parts that it takes a few hours just to figure out the coding patterns that they are using (for me as an amateur). Because it relies on Inertia, I don’t think there is an easy way to transfer these components over to a legacy project.
To be honest, most of your points are things that can be and should be modified after your site is up and running. Choose the easiest solution now, then modify it based on your needs afterward. I started out with SendGrid, then switched to Postmark. Started with Forge, now looking into Vapor starting next year. Admin started out as very simple custom code to handle some CRUD. Dumped and moved to Nova once my needs increased, etc.
Assuming you are using Stripe's payment intent API, you can think of the payment processing as three phases: (1) setup intent, (2) submit intent, (3) confirm status. From a UI and frontend standpoint, you only really handle phases 1 and 2 during the checkout process. Someone creates a cart (setup intent) and goes to checkout (submit intent). The web hook is Stripe's way of sending you a confirmation that the payment was indeed processed without any issues. This has no bearing on the customer experience or how you deal with their checkout flow.
The web hook is a way to ensure that you, from a business perspective, don't deliver goods that weren't actually paid for. In my use case, I handle user-to-user payments. When one user sends a payment, they go through the checkout flow normally and an invoice is created with status pending. Once I receive the web hook from Stripe confirming that the payment was processed, then I convert the invoice status to completed and notify the user. Since Stripe handles all flow of money, the only "business delivery" I have is that invoice and informing the user.
I used Stripe Connected Accounts to build in user-to-user payments. For OP, be sure to pay attention to the different responsibilities you'll have depending on whether you use Standard, Express, or Custom Connected Accounts. With Custom Accounts, for example, you will be responsible for the onboarding process and will need to pay a fee to Stripe for every active Custom Connected Account. The Standard Accounts are easier (for you) to setup, but you lose a bit of control over the onboarding process and you can lose users along the way. These are just some of the factors to consider.
Also, I recommend going straight in with Payment Intents API rather than using Charges.
Dang man, and here I was thinking "I'll develop something over a course of 2-3 months." You wrapped this one up in like a week. Nice job! I'll probably use it down the line for some marketing work.
Looking at it on desktop isn't that great either. There are ads everywhere. It honestly cheapens the experience and makes the site feel like one of those "you wouldn't believe what scientists are saying about X" sites.
My goodness. I just had a panic attack looking through that issues list lol. Definitely not something I'd put on the public issues board -- especially if I want to encourage collaborators.
Would you recommend doing the same thing if the controller is simply handling a request and using the data to interact with external API and returning a response?
I use it a lot to review events, listeners, and mailables in addition to drilling down failures during a request. It pretty much does everything debugbar does, though in a very different view setting. I like debugbar as a way to quickly compare the number of queries per page (it summarizes it better than telescope and helps you debug them faster), otherwise I think telescope covers most of my needs.
God, I love this answer lol
I freaking love Sail. Literally a “came for the documentation, stayed for the tools” situation
Also doesn’t help that they also switched from bootcamp at the same time. The time sink for the shift is huge when you take into account everything.
I’m quite scared that by the time I figure out how to use everything they built, they will release something else that completely shifts the focus again. I loved the Blade/Vue dynamic. It made sense to me and it was so easy to build something simple and work your way up with components. Now I have to do so much mental gymnastics to figure out how to structure something in my head into this design monolith. I really hope I can figure it out.
They have prebuilt passport components in their front end scaffolding. I was playing around with it yesterday... ugh. It’s so opinionated it hurts. They rewrote so much of their code into fractional parts that it takes a few hours just to figure out the coding patterns that they are using (for me as an amateur). Because it relies on Inertia, I don’t think there is an easy way to transfer these components over to a legacy project.
What a great article. Thanks for sharing
To be honest, most of your points are things that can be and should be modified after your site is up and running. Choose the easiest solution now, then modify it based on your needs afterward. I started out with SendGrid, then switched to Postmark. Started with Forge, now looking into Vapor starting next year. Admin started out as very simple custom code to handle some CRUD. Dumped and moved to Nova once my needs increased, etc.
Assuming you are using Stripe's payment intent API, you can think of the payment processing as three phases: (1) setup intent, (2) submit intent, (3) confirm status. From a UI and frontend standpoint, you only really handle phases 1 and 2 during the checkout process. Someone creates a cart (setup intent) and goes to checkout (submit intent). The web hook is Stripe's way of sending you a confirmation that the payment was indeed processed without any issues. This has no bearing on the customer experience or how you deal with their checkout flow.
The web hook is a way to ensure that you, from a business perspective, don't deliver goods that weren't actually paid for. In my use case, I handle user-to-user payments. When one user sends a payment, they go through the checkout flow normally and an invoice is created with status pending. Once I receive the web hook from Stripe confirming that the payment was processed, then I convert the invoice status to completed and notify the user. Since Stripe handles all flow of money, the only "business delivery" I have is that invoice and informing the user.
Yeah, that's pretty much what I saw after skimming through.
I love TDD. I never write backend code without it these days. Saves me so much time.
How about making a policy? User can delete post if created time stamp is within the parameters.
I used Stripe Connected Accounts to build in user-to-user payments. For OP, be sure to pay attention to the different responsibilities you'll have depending on whether you use Standard, Express, or Custom Connected Accounts. With Custom Accounts, for example, you will be responsible for the onboarding process and will need to pay a fee to Stripe for every active Custom Connected Account. The Standard Accounts are easier (for you) to setup, but you lose a bit of control over the onboarding process and you can lose users along the way. These are just some of the factors to consider.
Also, I recommend going straight in with Payment Intents API rather than using Charges.
Dang man, and here I was thinking "I'll develop something over a course of 2-3 months." You wrapped this one up in like a week. Nice job! I'll probably use it down the line for some marketing work.
Looking at it on desktop isn't that great either. There are ads everywhere. It honestly cheapens the experience and makes the site feel like one of those "you wouldn't believe what scientists are saying about X" sites.
My goodness. I just had a panic attack looking through that issues list lol. Definitely not something I'd put on the public issues board -- especially if I want to encourage collaborators.
You could try going headless so you don’t need to use a sub domain. He can feed himself data via api.
Great explanation, thank you.
No problem, happy we could help!
It sounds like this isn’t a mail server issue then. Are you using queues for your mailables? Have you tried resetting queue workers, etc?
EDIT: oops, did not see the earlier reply already
What happens when you switch your mail service back to log in your production environment? Does the mailable show up in your log?
Thanks for the feedback, I’ll work toward that goal moving forward
Would you recommend doing the same thing if the controller is simply handling a request and using the data to interact with external API and returning a response?
If you like the utilities in bootstrap like: p-2, mb-2, etc. and like that approach to styling then Tailwind may be something that you’ll really like.
I use it a lot to review events, listeners, and mailables in addition to drilling down failures during a request. It pretty much does everything debugbar does, though in a very different view setting. I like debugbar as a way to quickly compare the number of queries per page (it summarizes it better than telescope and helps you debug them faster), otherwise I think telescope covers most of my needs.
Debugbar is awesome; I also use telescope a lot these days