for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cortex\Auth\Http\Requests\Tenantarea;
class RegistrationProcessRequest extends RegistrationRequest
{
/**
* Prepare the data for validation.
*
* @return void
*/
protected function prepareForValidation(): void
$data = $this->all();
$data['is_active'] = ! config('cortex.auth.registration.moderated');
$this->replace($data);
}
* Get the validation rules that apply to the request.
* @return array
public function rules(): array
$rules = app('cortex.auth.member')->getRules();
$rules['password'] = 'required|confirmed|min:'.config('cortex.auth.password_min_chars');
return $rules;