How to pass multiple variables? #3538
Answered
by
patrickbrouwers
airliajsmith
asked this question in
Q&A
-
I need to pass a few variables to the Export. I have tried the example in the documentation, but I must be missing something. The error I am getting is Undefined Variable: startDate. Controller:
|
Beta Was this translation helpful? Give feedback.
Answered by
patrickbrouwers
Feb 17, 2022
Replies: 1 comment 4 replies
-
You'll have to use it as a class property instead of a variable: |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
airliajsmith
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll have to use it as a class property instead of a variable:
return $query->where('date', '>=', $this->startDate)