在自定义注册页面上获取注册错误消息Laravel

时间:2018-06-18 17:53:57

标签: php laravel laravel-5 laravel-5.2 laravel-5.1

我说我的问题非常糟糕,但我一直在浏览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') ?>中。似乎没什么用。

0 个答案:

没有答案
相关问题