Basic online search with bugs...
This commit is contained in:
36
app/Console/Commands/OnlineTestCommand.php
Normal file
36
app/Console/Commands/OnlineTestCommand.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use Illuminate\Console\Command;
|
||||
use App\Http\Controllers\OnlineCompareController;
|
||||
|
||||
class OnlineTestCommand extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'ikea:online';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'Command description';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function handle(OnlineCompareController $onlineCompareController)
|
||||
{
|
||||
//$article = $this->argument('article');
|
||||
$prices = $onlineCompareController->compare();
|
||||
dd($prices);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user