Files
nexusphp/app/Console/Commands/Test.php

65 lines
1.4 KiB
PHP
Raw Normal View History

2021-04-21 00:07:32 +08:00
<?php
namespace App\Console\Commands;
2025-03-29 14:32:31 +07:00
use App\Models\PersonalAccessToken;
2025-04-17 01:39:40 +07:00
use App\Models\Torrent;
use App\Models\User;
use App\Repositories\UploadRepository;
2021-04-21 00:07:32 +08:00
use Illuminate\Console\Command;
2022-08-04 00:48:42 +08:00
use NexusPlugin\Menu\Filament\MenuItemResource\Pages\ManageMenuItems;
use NexusPlugin\Menu\MenuRepository;
use NexusPlugin\Menu\Models\MenuItem;
2022-08-19 15:30:16 +08:00
use NexusPlugin\Permission\Models\Permission;
use NexusPlugin\Permission\Models\Role;
use NexusPlugin\PostLike\PostLikeRepository;
2022-06-08 14:15:59 +08:00
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
2022-06-08 20:47:34 +08:00
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
2024-10-20 23:47:40 +08:00
use NexusPlugin\Tracker\TrackerRepository;
use NexusPlugin\Work\Models\RoleWork;
use NexusPlugin\Work\WorkRepository;
2025-04-17 01:39:40 +07:00
use Stichoza\GoogleTranslate\GoogleTranslate;
2021-04-21 00:07:32 +08:00
class Test extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'test:test';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Just for test';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
2025-04-17 01:39:40 +07:00
$a = ['acb' => 2];
if ($a = isset($a['ab'])) {
$this->info("isset ab = true");
}
dd($a);
2021-04-21 00:07:32 +08:00
}
2021-04-21 00:07:32 +08:00
}