Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A facade root has not been set #71

Open
ricardocaste opened this issue Mar 6, 2021 · 0 comments
Open

A facade root has not been set #71

ricardocaste opened this issue Mar 6, 2021 · 0 comments

Comments

@ricardocaste
Copy link

ricardocaste commented Mar 6, 2021

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');```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant