1. Go to this page and download the library: Download kettasoft/pass-audit 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/ */
namespace App\Models;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Kettasoft\PassAudit\PassAudit;
class User extends Authenticatable
{
use PassAudit;
//...
}
namespace App\Models;
use Kettasoft\PassAudit\Contracts\HasPassAuditChecker;
class User extends Authenticatable implements HasPassAuditChecker
{
//
}
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Kettasoft\PassAudit\Rules\PassAuditRule;
class UpdatePasswordRequest extends FormRequest
{
public function rules()
{
return [
'password' => ['