May I have some help with this?
I need to run a query in a console command:
use Illuminate\Console\Command
use Illuminate\Support\Facades\DB;
use App\Jobs\SendVaccationEmail;
class ProcessDbResult extends Command
{
protected $signature = "process:entries";
protected $description = "Bulk Process of results";
public function handle()
{
$sql = "
SELECT DISTINCT
user_id
from
(Select user_id from travels where destination =
…
Top comments (0)