v2board/app/Console/Commands/Test.php
2021-07-01 20:06:09 +09:00

44 lines
704 B
PHP

<?php
namespace App\Console\Commands;
use App\Models\Order;
use Illuminate\Console\Command;
class Test extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'test';
/**
* 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()
{
dd(Order::where('user_id', 4)->delete());
}
}