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

app share? #25

Closed
hm-n2ads opened this issue Feb 12, 2014 · 1 comment
Closed

app share? #25

hm-n2ads opened this issue Feb 12, 2014 · 1 comment

Comments

@hm-n2ads
Copy link

I am trying to create two separate excel files in one execution of my script. However, I get the error "exception 'PHPExcel_Exception' with message 'You tried to set a sheet active by the out of bounds index: 1. The actual number of sheets is 1.'"

Is it not possible to do what I am trying to do? Here is my code:
Excel::create($fileName)->sheet('Ark 1')->with($this->getMergedContent($parameters))->store('xls', storage_path().'/exports/');

This is run two times. However, both files are created with the right content.

Maybe this is due to the use of app->share instead of app->bind?

@MaatwebsiteSupport
Copy link
Contributor

Could you try if the fix works for you aswel :)

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