Files
streamline-emr/docker/_streamline-src/app/Console/Commands/RedesignStockTrackingCommand.php
T

49 lines
964 B
PHP

<?php
namespace Streamline\Console\Commands;
use Illuminate\Console\Command;
use Modules\Stores\Http\Controllers\StoresController;
class RedesignStockTrackingCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'redesign:stock';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Redesign the structure of the stock for existing clients before July 2023';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle() {
echo "Starting stock redesign...";
$output = (new StoresController())->pre_existing_stock_tracking_redesign();
echo $output;
return 0;
}
}