It depends on the context. Can you post your full job class?
Oct 30, 2018
5
Level 1
Cannot call custom Job method withing job itself
I have created a Job containing a few helper methods, contained within the job class itself. When I try to call the methods ($this->method($params);), I get an error that the method does not exist.
Any ideas?
Level 1
Turns out I was using the exists() method on an already declared DB collection. So, I ended up using the first() method instead and treating the returned data as a boolean.
Is this an oversight? Why can't I use the exists() method on existing collections?
Please or to participate in this conversation.