Which fullpath to file?

|
richitorres 2019-10-25 00:13:48
te dire como les decimos a los porteros cuando tiene saque de meta aqui en mexico @Monaam12 heheheheheheehehe PUTO, putisimo putazo y que tu mama chingue a su madre
2019-10-25 00:14:08
richitorres 2019-10-25 00:12:37
Chinga tu madre entonces pelana

thank you for your respect 🤠

Dc1sc0 2019-10-25 00:14:11
repeto
richitorres 2019-10-25 00:14:14
DesolatorMagno 2019-10-25 00:12:34
url()->current();
esto no funcionaba?

eso se usa cuando quieres referneciar a tu misma ruta

DesolatorMagno 2019-10-25 00:14:17
Dc1sc0 2019-10-25 00:13:45
como asi?

https://laravel.com/docs/5.7/urls#accessing-the-current-url
Documentation.

Dc1sc0 2019-10-25 00:14:28
richitorres 2019-10-25 00:14:14
eso se usa cuando quieres referneciar a tu misma ruta

ah thanks.

richitorres 2019-10-25 00:14:28
yo lo uso para los cannonical
Dc1sc0 2019-10-25 00:16:08
richitorres 2019-10-25 00:14:14
eso se usa cuando quieres referneciar a tu misma ruta

Ready, Thanks.

Dc1sc0 2019-10-25 00:16:25
no no sabia, soy nuevo en laravel tengo menos de un mes
richitorres 2019-10-25 00:16:48
si tienes dudas puedes preguntarme por privado para que no se enoje el compañero
richitorres 2019-10-25 00:17:02
@BadBios , la neta me estresa ese tipo de gente y soy muy explosivo
richitorres 2019-10-25 00:17:06
con mis palabras
Dc1sc0 2019-10-25 00:17:24
richitorres 2019-10-25 00:16:48
si tienes dudas puedes preguntarme por privado para que no se enoje el compañero

Dale muchas gracias.

Dc1sc0 2019-10-25 00:17:35
richitorres 2019-10-25 00:17:02
@BadBios , la neta me estresa ese tipo de gente y soy muy explosivo

no hay problema.

Satish Tigga 2019-10-25 10:39:22
Has anyone worked with dompdf
MatPk 2019-10-25 10:48:50
GauravGohil 2019-10-24 16:13:41

Do u know what is a controller file 😐?

Satish Tigga 2019-10-25 11:16:21
I am unable to download ,stream anything because fopen is unable to open stream
Satish Tigga 2019-10-25 11:18:53
laravel_discuss-16278.jpg

Satish Tigga 2019-10-25 11:19:32
Satish Tigga 2019-10-25 11:18:53

I have created symlink also

Satish Tigga 2019-10-25 11:21:47
Satish Tigga 2019-10-25 11:18:53

Any solution

kitkover 2019-10-25 11:23:14
fopen(realpath($filepath))?
Satish Tigga 2019-10-25 11:24:46
kitkover 2019-10-25 11:23:14
fopen(realpath($filepath))?

laravel_discuss-16282.jpg

kitkover 2019-10-25 11:26:59
PDF::loadView(‘invoice/taxinvoice’, $data);
Satish Tigga 2019-10-25 11:28:48
Bro still the same
kitkover 2019-10-25 11:30:23
which fullpath to file?
Satish Tigga 2019-10-25 11:36:37
First I installed laravel Dom PDF

Then create symlink

Then made on file name invoice.blade.php in resource/view

Then created a controller for it

Then updated the web.php with routes

Satish Tigga 2019-10-25 11:37:36
I didn’t understand why it’s searching storage view should be loaded from resource/views
Satish Tigga 2019-10-25 11:43:34
laravel_discuss-16299.jpg

Satish Tigga 2019-10-25 11:43:34
laravel_discuss-16298.jpg

Satish Tigga 2019-10-25 11:43:53
What path should I use
Satish Tigga 2019-10-25 11:47:25
If pdf.invoice means views/pdf/invoice the only invoice means views/invoice
Satish Tigga 2019-10-25 11:48:50
If I have invoice.blade.php in views the loadview(‘invoice’) should work
Satish Tigga 2019-10-25 11:50:59
Or I need to create PDF folder inside view then put my invoice blade file inside PDF folder so that pdf.invoice to work….
Satish Tigga 2019-10-25 11:56:30
Alexander or Samuel please how to fix this
Satish Tigga 2019-10-25 11:56:57
No it doesn’t
Satish Tigga 2019-10-25 11:57:27
laravel_discuss-16313.jpg

Satish Tigga 2019-10-25 11:58:57
laravel_discuss-16318.jpg
See I have not mentioned any font or storage but I don’t know why it ….
Satish Tigga 2019-10-25 11:59:49
laravel_discuss-16320.jpg
views/pdf/invoice
Satish Tigga 2019-10-25 12:01:22
laravel_discuss-16323.jpg

Satish Tigga 2019-10-25 12:01:58
There is no folder name fonts in storage
Satish Tigga 2019-10-25 12:03:40
laravel_discuss-16331.jpg

Satish Tigga 2019-10-25 12:06:53
PDF {#567 ▼
#dompdf: Dompdf {#550 ▼
-version: “dompdf <75f13c70>”
-dom: DOMDocument {#577 ▶}
-tree: FrameTree {#576 ▶}
-css: Stylesheet {#560 ▶}
-canvas: CPDF {#570 ▶}
-paperSize: “a4”
-paperOrientation: “portrait”
-callbacks: []
-cacheId: null
-baseHost: “”
-basePath: “C:xampphtdocsturmericturmerichotelpublic”
-protocol: null
-httpContext: null
-startTime: null
-systemLocale: null
-localeStandard: true
-defaultView: “Fit”
-defaultViewOptions: []
-quirksmode: true
-allowedProtocols: array:5 [▶]
-allowedLocalFileExtensions: array:2 [▶]
-messages: []
-options: Options {#563 ▶}
-fontMetrics: FontMetrics {#568 ▶}
}
#config: Repository {#42 ▶}
#files: Filesystem {#176}
#view: Factory {#177 ▼
#engines: EngineResolver {#170 ▶}
#finder: FileViewFinder {#175 ▶}
#events: Dispatcher {#35 ▶}
#container: Application {#2 ▶}
#shared: array:3 [▶]
#extensions: array:4 [▶]
#composers: []
#renderCount: 0
#componentStack: []
#componentData: []
#slots: []
#slotStack: []
#sections: []
#sectionStack: []
#loopsStack: []
#pushes: []
#prepends: []
#pushStack: []
#translationReplacements: []
}
#rendered: false
#showWarnings: false
#public_path: null
}
Satish Tigga 2019-10-25 12:08:02
Bro can you find anything wrong here
Satish Tigga 2019-10-25 12:12:06
Kk I will paste it asap
Satish Tigga 2019-10-25 12:14:01
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td class=”text-center”>996311</td>
<td class=”text-center”></td>
<td class=”text-right”></td>
</tr>

<tr>
<td class=”highrow”></td>
<td class=”highrow”></td>
<td class=”highrow text-center”><strong>Subtotal</strong></td>
<td class=”highrow text-right”></td>
</tr>
<tr>
<td class=”emptyrow”></td>
<td class=”emptyrow”></td>
<td class=”emptyrow text-center”><strong>SGST</strong></td>
<td class=”emptyrow text-right”></td>
</tr>
<tr>
<td class=”emptyrow”></td>
<td class=”emptyrow”></td>
<td class=”emptyrow text-center”><strong>CGST</strong></td>
<td class=”emptyrow text-right”></td>
</tr>
<tr>
<td class=”emptyrow”></td>
<td class=”emptyrow”></td>
<td class=”emptyrow text-center”><strong>Total</strong></td>
<td class=”emptyrow text-right”></td>
</tr>

<td> Note: This is a computer generated invoice and doesn’t require any signature</td>
<td class=”text-center”></td>
<td class=”text-center”></td>
<td class=”text-right”></td>

</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>

<style>
.height {
min-height: 200px;
}

.icon {
font-size: 47px;
color: #5CB85C;
}

.iconbig {
font-size: 77px;
color: #5CB85C;
}

.table > tbody > tr > .emptyrow {
border-top: none;
}

.table > thead > tr > .emptyrow {
border-bottom: none;
}

.table > tbody > tr > .highrow {
border-top: 3px solid;
}
</style>

<!– Simple Invoice – END –>

</div>

</body>
</html>

Satish Tigga 2019-10-25 12:14:01
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″ />
<title>The Turmeric Hotel – Tax Invoice</title>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″ />

<link rel=”stylesheet” type=”text/css” href=”bootstrap/css/bootstrap.min.css” />
<link rel=”stylesheet” type=”text/css” href=”font-awesome/css/font-awesome.min.css” />

<script type=”text/javascript” src=”js/jquery-1.10.2.min.js”></script>
<script type=”text/javascript” src=”bootstrap/js/bootstrap.min.js”></script>
</head>
<body>

<div class=”container”>

<div class=”page-header”>

<img src=”assets/images/logo.png” alt=”” class=”img-responsive”>

</div>

<!– Simple Invoice – START –>
<div class=”container”>
<div class=”row”>
<div class=”col-xs-12″>
<div class=”text-center”>

<h2>Tax Invoice</h2>
</div>
<hr>
<div class=”row”>
<div class=”col-xs-12 col-md-3 col-lg-3 pull-left”>
<div class=”panel panel-default height”>
<div class=”panel-heading”>Billing Details</div>
<div class=”panel-body”>
<strong>The Turmeric hotel</strong><br>
In Front of Bahadur Bidyapitha, Daringbadi, Odisha<br>
762104<br>

<strong>GSTIN:</strong>21AAOFT9702G1Z4<br>
</div>
</div>
</div>
<div class=”col-xs-12 col-md-3 col-lg-3″>
<div class=”panel panel-default height”>
<div class=”panel-heading”>Payment Information</div>
<div class=”panel-body”>
<strong>Payment Id:</strong> <br>
<strong>Date of Payment:</strong> <br>

</div>
</div>
</div>
<div class=”col-xs-12 col-md-3 col-lg-3″>
<div class=”panel panel-default height”>
<div class=”panel-heading”>Customer Details</div>
<div class=”panel-body”>
<strong>Name:</strong> <br>
<strong>Email:</strong> <br>
<strong>Mobile:</strong> <br>
<strong>GSTIN:</strong> <br>
<strong>PAN:</strong> <br>
</div>
</div>
</div>
<div class=”col-xs-12 col-md-3 col-lg-3 pull-right”>
<div class=”panel panel-default height”>
<div class=”panel-heading”>Booking Details</div>
<div class=”panel-body”>
<strong>Check In:</strong><br>
<strong>Check Out:</strong><br>
<strong>Booking Id:</strong><br>
<strong>Invoice No:</strong><br>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=”row”>
<div class=”col-md-12″>
<div class=”panel panel-default”>
<div class=”panel-heading”>
<h3 class=”text-center”><strong>Order summary</strong></h3>
</div>
<div class=”panel-body”>
<div class=”table-responsive”>
<table class=”table table-condensed”>
<thead>
<tr>
<td><strong>Description</strong></td>
<td class=”text-center”><strong>HSN/SAC</strong></td>
<td class=”text-center”><strong>Tariff</strong></td>
<td class=”text-right”><strong>Amount</strong></td>

Satish Tigga 2019-10-25 12:14:42
bro invoice.blade.php
Satish Tigga 2019-10-25 12:18:21
Yes bro
Satish Tigga 2019-10-25 12:26:32
Samuel Bro It worked I think the problem is with the link and scripts that are included in the blade file once I removed them although the alignment gets disturbed but at least it’s downloading,streaming ….
Satish Tigga 2019-10-25 12:26:41
Thanks Samuel Bro
|