Jump to content

foxdealer

New Member
  • Posts

    1
  • Joined

  • Last visited

About foxdealer

foxdealer's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Based on the error message provided, it appears that there is an issue with the lists() method in the Illuminate\Database\Query\Builder class. This method has been deprecated in recent versions of Laravel and should be replaced with the pluck() method instead. To eliminate this error, you will need to update the code in the ForwardsCalls.php file to use the pluck() method instead of lists(). Here's an example of how to do this: // Replace this line: $users = DB::table('users')->where('active', 1)->lists('name'); // With this line: $users = DB::table('users')->where('active', 1)->pluck('name'); Once you have made this change, the error should no longer occur when running the CRON job. If you continue to experience issues, you may need to check the rest of your codebase for any other instances of the lists() method and replace them with pluck() as well.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated