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

Undefined variable #1096

Closed
rizdian opened this issue Feb 24, 2017 · 2 comments
Closed

Undefined variable #1096

rizdian opened this issue Feb 24, 2017 · 2 comments

Comments

@rizdian
Copy link

rizdian commented Feb 24, 2017

Please prefix your issue with one of the following: [BUG] [QUESTION].

Package version, Laravel version

"maatwebsite/excel": "~2.1.0" ,"Laravel 5.3"

Expected behaviour

how to fix that exception?

Actual behaviour

Exception stack trace

Screenshot of Excel file

bug

bug2

Steps to reproduce the behaviour

@patrickbrouwers
Copy link
Member

You have to pass the variable to the closure, else it won't know about it.

$sheet->cell(..., function($cell) use($isiCell) {
    dd($isiCell);
});

@saida-d
Copy link

saida-d commented Oct 10, 2023

You have to pass the variable to the closure, else it won't know about it.

$sheet->cell(..., function($cell) use($isiCell) {
    dd($isiCell);
});

=> use($isiCell) Perfect - works well.
Would have to listed in the official documentation instead of follow up the issue.

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

3 participants