Skip to content

Commit f96e574

Browse files
committed
type check
1 parent 023714b commit f96e574

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Http/Controllers/Api/V1/SiteController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ class SiteController extends Controller
2929
*/
3030
public function register(Request $request): JsonResponse
3131
{
32-
$url = $request->input('url');
33-
$key = $request->input('key');
32+
$url = $request->string('url');
33+
$key = $request->string('key');
3434

35-
if (empty($url) || empty($key)) {
35+
if ($url === '' && $key === '') {
3636
return $this->error('BadRequest');
3737
}
3838

0 commit comments

Comments
 (0)