basic license wip

This commit is contained in:
Andras Bacsai
2023-06-22 14:48:47 +02:00
parent fa2f34ba3c
commit d8adea734f
9 changed files with 75 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
<?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');
// }
}
}