<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use App\Events\Company\InvoiceUpdateEvent;
use App\Models\AssignedWorkers;

class CustomCommandForTesting extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'custom-command:test';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'This is a custom command for testing purposes only';

    /**
     * Execute the console command.
     */
    public function handle(): void
    {
        // event(new InvoiceUpdateEvent('10', "invoice", "approve"));
        $assigned = AssignedWorkers::whereNull('deleted_at')->pluck('worker_id');
        echo $assigned;
    }
}
