How to add TCPDF in laravel

Now i am going to how to add TCPDF in laravel. Many packages are available in laravel. One of them is elibyy/ tcpdf-laravel. You can install packages through Composer.

Installation using Composer

$ composer require elibyy/tcpdf-laravel


To use the static interfaces (facades) you need to add the following lines to your config/app.php. The First is for registering the service provider, the Second are for specifying the facades.

'providers' => [


'aliases' => [
    'PDF' => Elibyy\TCPDF\Facades\TCPDF::class

Leave a Reply

Your email address will not be published. Required fields are marked *