I'm using the queue and wanting to call methods out of my class. So I'm using:
Queue::push('MyApp\Services\Queue\AnalyticsService@login', $userId);
I then have a class called AnalyticsService and inside it a method called login.
class AnalyticsService {
public function identify($job, $data)
{
...
}
public function login($job, $data)
{
...
}
}
When I run the Queue it always runs the first method (in this case "identify()") instead of the correct method. Anyone have any ideas?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community