ConsoleTVs/Invoices

A facade root has not been set

ricardocaste opened this issue · 0 comments

I'm getting this error:

Type: RuntimeException

Message: A facade root has not been set.

Filename: /homepages/6/d487641550/htdocs/estaxi/vendor/illuminate/support/Facades/Facade.php

Line Number: 258

Backtrace:

File: /homepages/6/d487641550/htdocs/estaxi/vendor/consoletvs/invoices/Classes/PDF.php
Line: 57
Function: __callStatic

File: /homepages/6/d487641550/htdocs/estaxi/vendor/consoletvs/invoices/Classes/Invoice.php
Line: 378
Function: generate

File: /homepages/6/d487641550/htdocs/estaxi/vendor/consoletvs/invoices/Classes/Invoice.php
Line: 425
Function: generate

File: /homepages/6/d487641550/htdocs/estaxi/application/views/wallet/withdrawdata.php
Line: 30
Function: show

I'm using the example code:

 $invoice = \ConsoleTVs\Invoices\Classes\Invoice::make()
                ->addItem('Test Item', 10.25, 2, 1412)
                ->addItem('Test Item 2', 5, 2, 923)
                ->addItem('Test Item 3', 15.55, 5, 42)
                ->addItem('Test Item 4', 1.25, 1, 923)
                ->addItem('Test Item 5', 3.12, 1, 3142)
                ->addItem('Test Item 6', 6.41, 3, 452)
                ->addItem('Test Item 7', 2.86, 1, 1526)
                ->addItem('Test Item 8', 5, 2, 923, 'https://dummyimage.com/64x64/000/fff')
                ->number(4021)
                ->with_pagination(true)
                ->duplicate_header(true)
                ->due_date(Carbon::now()->addMonths(1))
                ->notes('Lrem ipsum dolor sit amet, consectetur adipiscing elit.')
                ->customer([
                    'name'      => 'Èrik Campobadal Forés',
                    'id'        => '12345678A',
                    'phone'     => '+34 123 456 789',
                    'location'  => 'C / Unknown Street 1st',
                    'zip'       => '08241',
                    'city'      => 'Manresa',
                    'country'   => 'Spain',
                ])
                ->show('demo');```