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

Usage

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' => [
    //...
    Elibyy\TCPDF\ServiceProvider::class,
]

//...

'aliases' => [
    //...
    'PDF' => Elibyy\TCPDF\Facades\TCPDF::class
]
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments