kvnkrft's avatar

Customizing Cashier Invoices

Hi all, is there a way that I can customize the Cashier invoices? Or does it require me to come up with a "custom" thing?

I am guessing that just overwriting (editing) the vendor/laravel/cashier/resources/views/receipt.blade.php file is a bad idea.

0 likes
5 replies
Cronix's avatar

You can publish the assets from that package (artisan vendor:publish), which should create a /resources/views/vendor/cashier dir with the receipt.blade.php template in it. If that file exists, it will use that instead of the default one in /vendor/laravel/cashier.

8 likes
kvnkrft's avatar

Thanks @Cronix could I just manually create that folder? Would that work too?

Cronix's avatar

I've never tried that, so not sure. You can always quickly try it.

Cronix's avatar

Good deal, please mark as solved.

Please or to participate in this conversation.