. */ namespace App\Http\Requests\Account; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; use App\Rules\Domain; use App\Rules\PasswordAlgorithm; class CardDavCredentials extends FormRequest { public function rules() { return [ 'username' => 'required', 'password' => 'required', 'algorithm' => ['required', new PasswordAlgorithm], 'realm' => 'required', ]; } }