Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

239
Views
How to add logo to stripe invoice pdf in laravel

How to add logo to stripe invoice pdf. I'm using laravel framework. Is there any way I can modify the blade file under vendor section? and commit the same.

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Run php artisan vendor:publish.
This will create vendor/cashier/receipt.blade.php file in your views folder, which you can modify as per your requirement & commit.

about 4 years ago · Santiago Trujillo Report

0

  1. Extend Cashier's Invoice - Laravel\Cashier\Invoice.
  2. Add $options->setIsRemoteEnabled(true); to pdf method:
public function pdf(array $data)
{
    if (! defined('DOMPDF_ENABLE_AUTOLOAD')) {
        define('DOMPDF_ENABLE_AUTOLOAD', false);
    }

    $options = new Options;
    $options->setChroot(base_path());
    $options->setIsRemoteEnabled(true);

    $dompdf = new Dompdf($options);
    $dompdf->setPaper(config('cashier.paper', 'letter'));
    $dompdf->loadHtml($this->view($data)->render());
    $dompdf->render();

    return $dompdf->output();
}
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!