From the course: Extending Laravel with First Party Packages
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Generate a PDF invoice
From the course: Extending Laravel with First Party Packages
Generate a PDF invoice
We have learned everything we really need to know to start working with Laravel Cashier. just because this can be really handy and it's super easy to set up, and that is generating a PDF invoice. Sounds like a lot of work, Obviously, we're going to generate a basic invoice, but then, we're also going to learn how to get all of the invoices for a particular user, how to display them to the user, and then how to eventually download those as an invoice receipt, okay, of an actual PDF onto their computer. So, all of this is going to be covered throughout this video. Let's go through and jump in and get typing away at some code. Alright, so here we back inside of our project. What we want to do this time is we are going to want to go to our homepage again. And I want to list all of the invoices that a user has if they're subscribed. So down here, we have our dashboard. It says managed subscriptions, you are subscribed. It's going to get rid of this lead text. And what I want to do here is…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Configure and install Laravel Cashier9m 39s
-
(Locked)
Set up a Stripe test account11m 50s
-
(Locked)
Create a subscription form11m 28s
-
(Locked)
Subscribe a user4m 51s
-
(Locked)
Display a user’s subscription status9m 48s
-
(Locked)
Modifying a user’s subscription7m 48s
-
(Locked)
Canceling a subscription9m 25s
-
(Locked)
Setting up a free trial or coupons7m 56s
-
(Locked)
Generate a PDF invoice7m 56s
-
(Locked)
-