<?php namespace App\Console\Commands\Transfer; use Illuminate\Console\Command; class Transfer extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'aix:transfer-all'; /** * The console command description. * * @var string */ protected $description = '转移旧系统数据'; /** * Create a new command instance. * * @return void */ public function __construct() { parent::__construct(); } /** * Execute the console command. * * @return mixed */ public function handle() { $this->info('开始转移个人用户数据...'); $this->call('aix:transfer-member'); $this->info('开始转移企业用户数据...'); $this->call('aix:transfer-company'); $this->info('开始转移内容数据...'); $this->call('aix:transfer-content'); } }