for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Http\Controllers\ExaminationStudentsController;
class ExaminationStudentMigrate extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'examination:migrate {year} {grade}';
* This will migrate set of examination student's from DoE to SIS.
protected $description = 'This command designed to map and produce new students id for examination';
* Create a new command instance.
* @return void
public function __construct()
parent::__construct();
}
* Execute the console command.
* @return mixed
public function handle()
$output = new \Symfony\Component\Console\Output\ConsoleOutput();
$output->writeln('###########################################------Inserting file records------###########################################');
$this->examinationController = new ExaminationStudentsController($this->argument('year'),$this->argument('grade'));
examinationController
$this->examinationController->doMatch();
$output->writeln('###########################################------Finished inserting file records------###########################################');