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

Not so much an issue more of a question.... #34

Closed
lstables opened this issue Mar 29, 2014 · 4 comments
Closed

Not so much an issue more of a question.... #34

lstables opened this issue Mar 29, 2014 · 4 comments

Comments

@lstables
Copy link

I want to pass this $card data to the pdf page but I get the following error:

' Method Illuminate\View\View::__toString() must not throw an exception '

    $data = Cards::where('id', '=', $id)->first();
    $pdf = PDF::loadView('applications.pdf', $data);
    return $pdf->download('invoice.pdf');
@barryvdh
Copy link
Owner

Is this fixed? Can you render the view outside dompdf? Any errors in the logs?

@lstables
Copy link
Author

Closed it because I found i asked you the same thing previously about 4 month ago lol

Although i can't get image to display when doing something like:

< img src="/uploads/profile_pics/{{ $data->image }}" > It says something about getimagesize(); Read Error!

@barryvdh
Copy link
Owner

Try removing the first / or use the asset() function

@lstables
Copy link
Author

Cheers removing the first / sorted this....Thanks Barry

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

2 participants