I have a controller, that calls a job, that calls a service.
The controller is updating fine:
public function myFunction(Request $request)
{
$job = new job();
$this->dispatch($job);
return new JsonResponse(true);
}
If I change the JsonResponse
to false
, it will send false
(for example).
Then I have a job in app/Jobs/job that does something:
public function handle()
{
$myService = new MyService();
$myService->doThis();
}
And the service does something else:
class MyService
{
public function doThis()
{
//Does a thing that throws an exception
}
}
The job as well as the services won't update at all no matter what I do. I tried even deleting the job as well as the service file but it just stays there. I've tried to clear all the caches to no avail. Any help?