<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Log;
use App\libs\Meituan;
use App\SettingModel;
use Illuminate\Support\Facades\Session;
/*use Illuminate\Http\Request;
use App\Http\Controllers\HomeController;
use Illuminate\Http\Request;
use App\Http\Requests;*/
class ToOrder extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'to_order';
/**
* The console command description.
*
* @var string
*/
protected $description = 'order detail API';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
//
Log::info(session('uid'));
}
}
这是\App\Console\Commands\ToOrder这个类文件