fix: licensing

This commit is contained in:
Andras Bacsai
2023-07-27 14:45:34 +02:00
parent e7d019028a
commit 97e2a5d30b
7 changed files with 35 additions and 61 deletions

View File

@@ -1,26 +0,0 @@
<?php
namespace App\Http\Livewire;
use Illuminate\Support\Facades\Cache;
use Livewire\Component;
class License extends Component
{
public string $license;
public function submit()
{
ray('checking license');
$this->validate([
'license' => 'required'
]);
// Pretend we're checking the license
// if ($this->license === '123') {
// ray('license is valid');
// Cache::put('license_key', '123');
// return redirect()->to('/');
// } else {
// ray('license is invalid');
// }
}
}