feat: Implement DNS management with dedicated models, repositories, requests, controllers, and services, while refactoring authentication by removing Passport and Sanctum.

This commit is contained in:
pbao9
2026-03-09 16:43:06 +07:00
parent 80a5e0ca3d
commit 4e4807dbea
47 changed files with 1905 additions and 1243 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Facades;
use Illuminate\Support\Facades\Facade;
/**
* @method static string url(string $ip)
*/
class BaseHelperFacade extends Facade
{
protected static function getFacadeAccessor(): string
{
return 'base-helper';
}
/**
* Build a base HTTPS URL from an IP address or hostname.
*/
public static function url(string $ip): string
{
$ip = rtrim($ip, '/');
if (!str_starts_with($ip, 'http://') && !str_starts_with($ip, 'https://')) {
return 'https://' . $ip;
}
return $ip;
}
}