I am receiving [BadMethodCallException] Method isNotEmpty does not exist
whenever I am using chunk method on a Eloquent Model. I am receiving this error on all my servers (testing, staging and production) but not on my local machine even though all 4 machines have same versions of php, laravel.
Stacktrace
[2019-02-25 11:51:04] staging.ERROR: BadMethodCallException: Method isNotEmpty does not exist. in /api/bootstrap/cache/compiled.php:6366 Stack trace:
0 /api/vendor/baopham/dynamodb/src/DynamoDbQueryBuilder.php(430): Illuminate\Support\Collection->__call('isNotEmpty', Array)
1 /api/app/Console/Commands/IndexInvoicesToElastic.php(142): BaoPham\DynamoDb\DynamoDbQueryBuilder->chunk(10000, Object(Closure))
2 [internal function]: App\Console\Commands\IndexInvoicesToElastic->handle()
3 /api/bootstrap/cache/compiled.php(1257): call_user_func_array(Array, Array)
4 /api/vendor/laravel/framework/src/Illuminate/Console/Command.php(169): Illuminate\Container\Container->call(Array)
5 /api/vendor/symfony/console/Command/Command.php(256): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
6 /api/vendor/laravel/framework/src/Illuminate/Console/Command.php(155): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
7 /api/vendor/symfony/console/Application.php(794): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
8 /api/vendor/symfony/console/Application.php(186): Symfony\Component\Console\Application->doRunCommand(Object(App\Console\Commands\IndexInvoicesToElastic), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
9 /api/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
10 /api/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(107): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
11 /api/artisan(35): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
12 {main}
Version info
Laravel: 5.2
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2H1qkqP
via IFTTT
Aucun commentaire:
Enregistrer un commentaire