Skip to content

Commit b104d72

Browse files
committed
Remove license validation components and related files
1 parent ace3796 commit b104d72

File tree

8 files changed

+2
-108
lines changed

8 files changed

+2
-108
lines changed

config/nova.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@
1010

1111
return [
1212

13-
/*
14-
|--------------------------------------------------------------------------
15-
| Nova License Key
16-
|--------------------------------------------------------------------------
17-
|
18-
| The following configuration option contains your Nova license key. On
19-
| non-local domains, Nova will verify that the Nova installation has
20-
| a valid license associated with the application's active domain.
21-
|
22-
*/
23-
24-
'license_key' => env('NOVA_LICENSE_KEY'),
25-
2613
/*
2714
|--------------------------------------------------------------------------
2815
| Nova App Name

public/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"/app.js": "/app.js?id=7d717946e7f8c89b5d805d44aedaf2ca",
2+
"/app.js": "/app.js?id=b7957e7b100155d49d1e321d9811d94a",
33
"/ui.js": "/ui.js?id=592866a715b1c20b43fff6ca7980b279",
44
"/manifest.js": "/manifest.js?id=3267e5c99fd7b729e2f38ec55b50397d",
55
"/app.css": "/app.css?id=5be2f220306cc89d3f1400a1b2b7bb98",

resources/js/components/LicenseWarning.vue

Lines changed: 0 additions & 18 deletions
This file was deleted.

resources/js/layouts/MainHeader.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
>
2121
<AppLogo class="h-6" />
2222
</Link>
23-
24-
<LicenseWarning />
2523
</div>
2624

2725
<div class="flex flex-1 px-4 sm:px-8 lg:px-12">
@@ -126,7 +124,6 @@
126124

127125
<script setup>
128126
import { useStore } from 'vuex'
129-
import LicenseWarning from '@/components/LicenseWarning'
130127
import { Button } from 'laravel-nova-ui'
131128
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
132129
import { computed, onBeforeUnmount, useTemplateRef, watch } from 'vue'

src/Console/CheckLicenseCommand.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/Http/Middleware/HandleInertiaRequests.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ public function share(Request $request)
5555
return ! is_null($user) ? UserResource::make($user)->toArray($request) : null;
5656
});
5757
},
58-
'validLicense' => function () use ($request) {
59-
return with(Nova::user($request), function ($user) {
60-
return ! is_null($user) ? Nova::checkLicenseValidity() : Cache::get('nova_valid_license_key');
61-
});
62-
},
6358
]);
6459
}
6560

src/Nova.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -870,26 +870,6 @@ public static function provideToScript(array $variables): static
870870
return new static;
871871
}
872872

873-
/**
874-
* Check to see if Nova is valid for the configured license key.
875-
*/
876-
public static function checkLicenseValidity(): bool
877-
{
878-
return Cache::remember('nova_valid_license_key', 3600, function () {
879-
return rescue(function () {
880-
return static::checkLicense();
881-
}, false);
882-
});
883-
}
884-
885-
/**
886-
* Check to see if Nova is valid for the configured license key.
887-
*/
888-
public static function checkLicense(): bool
889-
{
890-
return true;
891-
}
892-
893873
/**
894874
* Get the logo that is configured for the Nova admin.
895875
*/

0 commit comments

Comments
 (0)