kastony
3 years ago
799
7
Laravel

Blade strips spaces inside variable

Posted 3 years ago by kastony

Hi, in my view I have a

{{ $invoice->a46 }} 

my controller

$invoice =  Invoice::find($id);  
return View('pdf.invoice', compact('invoice'))

instead of showing 05/15 (5 spaces) 20/11/15 (10 spaces) 1.789,00 (5spaces) 47,10 it shows 05/15 20/11/15 1.789,00 47,10 I don't know why it's strips the spaces.

Any suggestions ?

P.S. posting here also removes the spaces.

Please sign in or create an account to participate in this conversation.