diff --git a/README.md b/README.md index 07e6884..dde310b 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,23 @@ ->optionsFromKeyValue('kvs'); // 用于结合vKeyValue进行选项选择 ``` +##### 登录验证码 + + +```php +class SettingController extends Controller +{ + public function index(Content $content): Content + { + $tab = Tab::make(); + $tab->add('站点配置', new AuthSetting()); + + return $content->title('配置') + ->body($tab->withCard()); + } +} +``` + [comment]: <> (### Donate) [comment]: <> () diff --git a/resources/lang/en/auth.php b/resources/lang/en/auth.php new file mode 100644 index 0000000..a65ab5c --- /dev/null +++ b/resources/lang/en/auth.php @@ -0,0 +1,12 @@ + 'Captcha', + 'enable_captcha' => 'Enable Captcha', + 'background' => 'Auth Background', + 'footer' => 'Footer', + 'footers' => [ + 'name' => 'ICP', + 'path' => 'Link' + ], +]; diff --git a/resources/lang/zh_CN/auth.php b/resources/lang/zh_CN/auth.php new file mode 100644 index 0000000..41129d9 --- /dev/null +++ b/resources/lang/zh_CN/auth.php @@ -0,0 +1,12 @@ + '验证码', + 'enable_captcha' => '开启验证码', + 'background' => '登录背景', + 'footer' => '页脚', + 'footers' => [ + 'name' => '备案号', + 'path' => '链接' + ], +]; diff --git a/resources/views/login.blade.php b/resources/views/login.blade.php new file mode 100644 index 0000000..f945ba6 --- /dev/null +++ b/resources/views/login.blade.php @@ -0,0 +1,239 @@ + + +
{{ __('admin.welcome_back') }}
+ + + +