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

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…

Contents