. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; /** * Class UserRegistrationRequest. */ class UserRegistrationRequest extends Request { /** * @return bool */ public function authorize() { // Only everybody return true; } /** * @return array */ public function rules() { // fixed return [ 'email' => 'email|required', 'password' => 'confirmed|secure_password', ]; } }