Open MarceloA00 opened 4 years ago
I get this error when the job is dispatched. Call to undefined method Illuminate\Foundation\Application::query() Points here as origin of error, $status = $entityClass::query()->create($data) Any idea on how to fix it??
$status = $entityClass::query()->create($data)
Can you tell how do you dispatch the Job and what is the Laravel version you are using?
I met same problem. fixed by php artisan config:clear php artisan config:cache
php artisan config:clear
php artisan config:cache
I get this error when the job is dispatched. Call to undefined method Illuminate\Foundation\Application::query() Points here as origin of error,
$status = $entityClass::query()->create($data)
Any idea on how to fix it??