the docs say to use this example. Of course its not working as it need to know TCPDF somehow and this is where I am failing Laravel to understand. In PHP i can just require the page but now this is installed in \vendor and i am not sure how to move forward
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('Nicola Asuni');
$pdf->SetTitle('TCPDF Example 001');
Well if you want to use a package you need the proper namespace. I don't know what the directory structure is but it's most likely something like this
vender/technick/tcpdf
Now most packages have the same namespace as their directory structure so you can do this on the top of your file
use Technick/Tcpdf`/TCPDF;
What you can do to be sure is dive in the code of in the vendor directory and look for the class TCPDF. This file has a namespace at the top like every other file. Copy the namespace at the top and add /TCPDF to it and you should be fine. So if the file looks like this
<?php namespace Technick/PDF;
class TCPDF ...
Then you use statement looks like this
use Technick/PDF/TCPDF:
Now you can access the TCPDF class with no problems ;)