New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid argument supplied for foreach() in Datatables.php (line 57) #1708
Comments
Your code looks fine. However, it seems like your version may not be updated? |
Im facing same issue. I've just upgraded to version 8, with: but Im still getting the error:
Please advise |
@painter10 base on error log line 51, the new $builders = config('datatables.builders');
...
foreach ($builders as $class => $engine) {... Also see https://yajrabox.com/docs/laravel-datatables/master/upgrade if you haven't checked it yet. |
Thanks for suggestion. I think the problem was that I followed the Quick Start tutorial literally, so it was necessary to modify the setup, namely: |
just clear config cache of laravel. |
@AmirKaftari I could resolve the issue by clearing laravel cache. Thank you! |
@AmirKaftari All praise is due to Allah, the problem I'm finished with "php artisan config: cache" |
@AmirKaftari Masha Allah , thank you very much |
@AmirKaftari thanks |
masyaAllah, "php artisan config: cache" is the answer to my prayer. |
this is working for me |
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Summary of problem or feature request
getting error when call anyData Route. through the network inspector, I cleared php artisan cache.
ErrorException Invalid argument supplied for foreach()
in Datatables.php (line 57)
Code snippet of problem
Routes:
System details
The text was updated successfully, but these errors were encountered: