wip
This commit is contained in:
@@ -21,7 +21,7 @@ class Kernel extends HttpKernel
|
||||
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
||||
\App\Http\Middleware\TrimStrings::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
||||
// \App\Http\Middleware\LicenseValid::class,
|
||||
\App\Http\Middleware\LicenseValid::class,
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,10 @@ class LicenseValid
|
||||
*/
|
||||
public function handle(Request $request, Closure $next): Response
|
||||
{
|
||||
if (!config('coolify.self_hosted')) {
|
||||
if (isCloud()) {
|
||||
if (isDev()) {
|
||||
return $next($request);
|
||||
}
|
||||
$value = Cache::get('license_key');
|
||||
if (!$value) {
|
||||
ray($request->path());
|
||||
|
||||
Reference in New Issue
Block a user