34 lines
		
	
	
		
			643 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			643 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Console\Commands;
 | 
						|
 | 
						|
use App\Scraper\Edomizil;
 | 
						|
use App\Models\Property;
 | 
						|
use Illuminate\Console\Command;
 | 
						|
 | 
						|
class scraperCreateJobs extends Command
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * The name and signature of the console command.
 | 
						|
     *
 | 
						|
     * @var string
 | 
						|
     */
 | 
						|
    protected $signature = 'scraper:jobs';
 | 
						|
 | 
						|
    /**
 | 
						|
     * The console command description.
 | 
						|
     *
 | 
						|
     * @var string
 | 
						|
     */
 | 
						|
    protected $description = 'Create and dispatch jobs for scraping';
 | 
						|
 | 
						|
    /**
 | 
						|
     * Execute the console command.
 | 
						|
     */
 | 
						|
    public function handle()
 | 
						|
    {
 | 
						|
        Edomizil::dispatchPropertyJobs();
 | 
						|
        Edomizil::dispatchPropertyDataJobs(); 
 | 
						|
    }
 | 
						|
}
 |