Downloads
Stars
Version
Laravel BadgeFactor2 is a Laravel package which allows to use the Badgr Server project in Laravel.
You install the package via composer:
composer require ctrlwebinc/laravel-badgefactor2
php artisan vendor:publish --tag="bf2-config"
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan migrate
Add the following provider in your config\app.php
file:
/*
* Package Service Providers...
*/
Spatie\Permission\PermissionServiceProvider::class,
...
To migrate users from WordPress, you need to make a few modifications to your app :
...
use Illuminate\Auth\Events\Attempting;
use Ctrlweb\BadgeFactor2\Listeners\WordPressPasswordUpdate;
protected $listen = [
Attempting::class => [
WordPressPasswordUpdate::class,
],
...
];