PHP code example of asundust / auth-captcha
1. Go to this page and download the library: Download asundust/auth-captcha library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
asundust / auth-captcha example snippets
php artisan vendor:publish --provider="Asundust\AuthCaptcha\AuthCaptchaServiceProvider"
namespace App\Admin\Controllers;
use Asundust\AuthCaptcha\Http\Controllers\AuthCaptchaController;
class AuthController extends AuthCaptchaController
{
public function getLogin()
{
// 原先代码在 \Asundust\AuthCaptcha\Http\Controllers\AuthCaptchaController::getLogin
// 这里重写自己的逻辑
}
public function postLogin()
{
// 原先代码在 \Asundust\AuthCaptcha\Http\Controllers\AuthCaptchaController::postLogin
// 这里重写自己的逻辑
}
// 重写其他方法 具体查看 Encore\Admin\Controllers\AuthController
}