Update SpaController, fix typo

This commit is contained in:
Daniel Supernault 2022-04-03 01:47:20 -06:00
parent ecedf0fb28
commit dab9bcaf36
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -67,7 +67,7 @@ class SpaController extends Controller
public function updateLanguage(Request $request)
{
abort_unless(config('exp.spa'), 404);
abort_unless($req->user(), 404);
abort_unless($request->user(), 404);
$this->validate($request, [
'v' => 'required|in:0.1,0.2',
'l' => 'required|alpha_dash|max:5'