improve migration file + seedbox management

This commit is contained in:
xiaomlove
2022-07-21 15:42:12 +08:00
parent b2e3c2cce3
commit b507c41bf0
33 changed files with 577 additions and 12 deletions

View File

@@ -46,6 +46,8 @@ use Nexus\Imdb\Imdb;
use NexusPlugin\PostLike\PostLikeRepository;
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
use PhpIP\IP;
use PhpIP\IPBlock;
use Rhilip\Bencode\Bencode;
class Test extends Command
@@ -81,11 +83,10 @@ class Test extends Command
*/
public function handle()
{
$r = Str::of(class_basename(\App\Models\AgentAllow::class))
->plural()
->kebab()
->slug();
$ip = '116.30.133.129';
// $ip = '240e:3a1:680c:bb11:211:32ff:fe2c:a603';
$ipObj = IPBlock::create($ip);
$r = $ipObj->getFirstIp();
dd($r);
}