Skip to content

Tag: laravel

Generate a last 7 days weekly report in Mysql

I want to get a report of my eco_orders table that how much order i get in a day for last 7days. I got the result with below sql and it’s absolutely fine. but the problem is I want to include the non order day count with zero Answer You can try this option –

Laravel Redis Jobs are not Being Queued

I am using Laravel with Phpredis and I’ve created a webhook that adds a job to the queue. I’ve followed the docs for the interrogation but my jobs are not being queued. .env QUEUE_CONNECTION=redis config/database.php ‘client’ => env(‘REDIS_CLIENT’, ‘phpredis’…

array_push() expects parameter 1 to be array, int given

I am getting array_push() expect parameter one to be an array, any solution? Answer you have referenced the variable as an array first time. but when you are using it for array push with $activeCourses = it becomes an integer field as array_push returns an integer value and then when it comes to next array pu…