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'); // } } }