Command for install package for PDF : composer require barryvdh/laravel-dompdf Then go to config/app.php and make some changes 'providers' => [ .... Barryvdh\DomPDF\ServiceProvider::class, ], 'aliases' => [ .... 'PDF' => Barryvdh\DomPDF\Facade::class, ],
@ashikrahman10365 ай бұрын
bro pin this comment
@WebTechKnowledge5 ай бұрын
Okay
@hashilankeshwara834 Жыл бұрын
I have an error msg. "The PHP GD extension is required, but is not installed."🤔 can you help?
@accountaccount4217 Жыл бұрын
Great vid, I successfully downloaded the pdf but the image isn't. Instead, it displays "Image not found or type unknown". How should I fix it?, I did "myfolder/{{$order->image}}" and my data type in my database is BLOB. The image is visible in loadview but every time I download it "Image not found or type unknown" is displayed. What am I missing? and what should I do?
@MUHAMMADSHOAIB-ol8cl11 ай бұрын
sir im facing an error can u please help me to solve it "The PHP GD extension is required, but is not installed."
@PerwinNonjida3 күн бұрын
fopen(C:\xampp1\htdocs\ecommercelaravel\storage\fonts/material_design_icons_normal_db5bc81853778eb65f3eca8935e49013.ufm): Failed to open stream: No such file or directory ....what is the solution for this?
@trongnhanle7658 Жыл бұрын
hello teacher, when i dowload pdf file, my font-family of pdf file is error because my language is VietNamese. How can i fix it ?
@HungLe-uj1ky2 жыл бұрын
Thanks bro
@usamakhilji8274 Жыл бұрын
in your system the user have only one item in his cart if he order more then what..?
@nishusapkota999011 ай бұрын
Order id is passed as a parameter
@03_polashmia57 Жыл бұрын
$pdf = PDF::loadView('student-detail'); return $pdf->download('studentId.pdf'); Error: Non-static method Barryvdh\DomPDF\PDF::loadView() cannot be called statically. how to solve it?
@worshiplord8267 Жыл бұрын
I have the same issue. have you solved it?
@tqnmusic5612 Жыл бұрын
@@worshiplord8267 yes i have the same issue, you can fix it ?
@rewaj56 Жыл бұрын
Alias: 'PDF' => Barryvdh\DomPDF\Facade\Pdf::class In your controller: use Barryvdh\DomPDF\Facade\Pdf as PDF; In your function: $pdf = PDF::loadView('admin.pdf', compact('order')); Hope it helps !
@RizaHaryadi-rg6wg8 ай бұрын
is it any different from the one in the video?@@rewaj56
@rewaj568 ай бұрын
@@RizaHaryadi-rg6wg yes
@abdessamadelhaddad655310 ай бұрын
if the image doesn't appear try this
@jankisingh36922 жыл бұрын
Clickbait you have written print pdf but it is just download pdf
@WebTechKnowledge2 жыл бұрын
Bro in order to print you need to download pdf
@muslimtechnology230 Жыл бұрын
I can not download the package. The problem is below . C:\Users\USER\Desktop\color design\EcommorceWebsite\daraze>composer require barryvdh/laravel-dompdf Using version ^2.0 for barryvdh/laravel-dompdf ./composer.json has been updated Running composer update barryvdh/laravel-dompdf Loading composer repositories with package information Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Package operations: 1 install, 0 updates, 0 removals - Downloading dompdf/dompdf (v2.0.1) - Downloading dompdf/dompdf (v2.0.1)
@好きな事で生きるプロゲーマー自2 жыл бұрын
Lesson19:kzbin.info/www/bejne/lafWiJelbLyhias
@code4life332 Жыл бұрын
Done 1/20/2023 ပီးပီ
@ryzizzle56152 жыл бұрын
I have an error. Can not print pdf with image My code didn't work :(
@WebTechKnowledge Жыл бұрын
try adding another / before product
@accountaccount4217 Жыл бұрын
Have you successfully fixed this? I'm having the same trouble can't find from google or yt's their suggestions aren't working. The image is being displayed in my blade file or LoadView but every time I download it as pdf it disappears.
@ryzizzle5615 Жыл бұрын
@@accountaccount4217no I didn't. Sorry
@accountaccount4217 Жыл бұрын
@@ryzizzle5615 Ohh, ty for responding
@rodrigoaraujoei Жыл бұрын
@@WebTechKnowledge adding "/" just resolves the error, but when u see the pdf, the image is like blanc with some cross in the middle...