我说我的问题非常糟糕,但我一直在浏览Laravel文件和文档几个小时,没有解决方案。
我有一个自定义的php页面,其中包含一个注册表单:
customRegister.php:
<?php require_once __DIR__ . '/../../../vanguard/extra/auth.php';\
$foundUsername = "testUser";
?>
<form role="form" action="https://my.neonn.com.au/register" method="POST" id="registration-form" autocomplete="off">
<input type="hidden" value="<?= csrf_token() ?>" name="_token">
<input type="hidden" name="username" id="username" value="<?php echo $foundUsername; ?>">
<input type="password" class="form-control empty" id="inputPassword" name="password">
<input type="password" class="form-control empty" id="inputPasswordCheck" name="password_confirmation">
<button type="submit">Submit</button>
</form>
我正在尝试显示密码不符合规则时显示的“部分/消息”错误。例如,包含6个字符。
我尝试过将其添加到我的代码<?= @include('partials/messages') ?>
中。似乎没什么用。