Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Http/Requests/Auth/LoginRequest.php
10266 views
1
<?php
2
3
namespace Pterodactyl\Http\Requests\Auth;
4
5
use Illuminate\Foundation\Http\FormRequest;
6
7
class LoginRequest extends FormRequest
8
{
9
public function authorized(): bool
10
{
11
return true;
12
}
13
14
public function rules(): array
15
{
16
return [
17
'user' => 'required|string|min:1',
18
'password' => 'required|string',
19
];
20
}
21
}
22
23