mirror of
https://gitlab.com/omair-personal/izyim.git
synced 2026-08-19 04:14:05 +00:00
large commit
This commit is contained in:
@@ -86,7 +86,11 @@ class OrderController extends Controller
|
||||
'warehouse_contact' => $warehouseContact
|
||||
];
|
||||
|
||||
return view('pages.pdf.qr', $data);
|
||||
$pdf = PDF::loadView('pdf', compact('data'));
|
||||
|
||||
return $pdf->download('disney.pdf');
|
||||
|
||||
// return view('pages.pdf.qr', $data);
|
||||
|
||||
// return $this->pdf->loadView('pages.pdf.qr', $data)->stream();
|
||||
}
|
||||
|
||||
+3
-2
@@ -6,6 +6,8 @@
|
||||
"type": "project",
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
"ext-imagick": "*",
|
||||
"barryvdh/laravel-dompdf": "^0.8.5",
|
||||
"fideloper/proxy": "^4.0",
|
||||
"guzzlehttp/guzzle": "^6.3",
|
||||
"intervention/image": "^2.4",
|
||||
@@ -14,8 +16,7 @@
|
||||
"maatwebsite/excel": "^3.1",
|
||||
"rinvex/countries": "^5.0",
|
||||
"spatie/laravel-activitylog": "^3.1",
|
||||
"tightenco/ziggy": "v0.6.8.1",
|
||||
"ext-imagick": "*"
|
||||
"tightenco/ziggy": "v0.6.8.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"beyondcode/laravel-dump-server": "^1.0",
|
||||
|
||||
@@ -150,6 +150,7 @@ return [
|
||||
/*
|
||||
* Package Service Providers...
|
||||
*/
|
||||
Barryvdh\DomPDF\ServiceProvider::class,
|
||||
|
||||
/*
|
||||
* Application Service Providers...
|
||||
@@ -209,6 +210,7 @@ return [
|
||||
'Validator' => Illuminate\Support\Facades\Validator::class,
|
||||
'View' => Illuminate\Support\Facades\View::class,
|
||||
'Constants' => App\Classes\Constants::class,
|
||||
'PDF' => Barryvdh\DomPDF\Facade::class,
|
||||
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user