PHP code example of ctrlwebinc / laravel-badgefactor2
1. Go to this page and download the library: Download ctrlwebinc/laravel-badgefactor2 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/ */
ctrlwebinc / laravel-badgefactor2 example snippets
/*
* Package Service Providers...
*/
Spatie\Permission\PermissionServiceProvider::class,
...
...
use Illuminate\Auth\Events\Attempting;
use Ctrlweb\BadgeFactor2\Listeners\WordPressPasswordUpdate;
protected $listen = [
Attempting::class => [
WordPressPasswordUpdate::class,
],
...
];
bash
composer vendor:publish --tag="bf2-config"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan migrate